933661b22c
Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
19 lines
350 B
JavaScript
19 lines
350 B
JavaScript
import { mapGetters } from 'vuex';
|
|
|
|
export default {
|
|
computed: {
|
|
...mapGetters({
|
|
uiSettings: 'getUISettings',
|
|
}),
|
|
},
|
|
methods: {
|
|
updateUISettings(uiSettings = {}) {
|
|
this.$store.dispatch('updateUISettings', {
|
|
uiSettings: {
|
|
...this.uiSettings,
|
|
...uiSettings,
|
|
},
|
|
});
|
|
},
|
|
},
|
|
};
|