8
app/javascript/shared/mixins/alertMixin.js
Normal file
8
app/javascript/shared/mixins/alertMixin.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/* global bus */
|
||||
export default {
|
||||
methods: {
|
||||
showAlert(message) {
|
||||
bus.$emit('newToastMessage', message);
|
||||
},
|
||||
},
|
||||
};
|
||||
7
app/javascript/shared/mixins/configMixin.js
Normal file
7
app/javascript/shared/mixins/configMixin.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export default {
|
||||
computed: {
|
||||
hostURL() {
|
||||
return window.chatwootConfig.hostURL;
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user