mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-27 20:33:11 +02:00
Fix bug
This commit is contained in:
parent
aec5911821
commit
fa0023e541
2 changed files with 6 additions and 4 deletions
|
@ -106,10 +106,7 @@ export default Vue.extend({
|
|||
|
||||
deck.layout = deck.columns.map(c => [c.id]);
|
||||
|
||||
this.$store.commit('device/set', {
|
||||
key: 'deck',
|
||||
value: deck
|
||||
});
|
||||
this.$store.commit('setDeck', deck);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -129,6 +129,11 @@ export default (os: MiOS) => new Vuex.Store({
|
|||
os.store.dispatch('settings/updateHomeProfile');
|
||||
},
|
||||
|
||||
setDeck(state, data) {
|
||||
Vue.set(state.settings.deckProfiles, state.device.deckProfile, data);
|
||||
os.store.dispatch('settings/updateDeckProfile');
|
||||
},
|
||||
|
||||
addHomeWidget(state, widget) {
|
||||
state.settings.homeProfiles[state.device.homeProfile].unshift(widget);
|
||||
os.store.dispatch('settings/updateHomeProfile');
|
||||
|
|
Loading…
Reference in a new issue