Chatwoot/app/javascript/dashboard/mixins/uiSettings.js

20 lines
350 B
JavaScript
Raw Normal View History

import { mapGetters } from 'vuex';
export default {
computed: {
...mapGetters({
uiSettings: 'getUISettings',
}),
},
methods: {
updateUISettings(uiSettings = {}) {
this.$store.dispatch('updateUISettings', {
uiSettings: {
...this.uiSettings,
...uiSettings,
},
});
},
},
};