feat: Save rich content editor state to user.uiSettings (#1736)

Co-authored-by: Nithin David Thomas <webofnithin@gmail.com>
This commit is contained in:
Pranav Raj S
2021-02-07 12:54:32 +05:30
committed by GitHub
parent 235e4325bc
commit 933661b22c
4 changed files with 92 additions and 27 deletions

View File

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