mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Fix bug
This commit is contained in:
parent
57d4d2cb20
commit
d0e77e0827
@ -106,10 +106,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
deck.layout = deck.columns.map(c => [c.id]);
|
deck.layout = deck.columns.map(c => [c.id]);
|
||||||
|
|
||||||
this.$store.commit('device/set', {
|
this.$store.commit('setDeck', deck);
|
||||||
key: 'deck',
|
|
||||||
value: deck
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -129,6 +129,11 @@ export default (os: MiOS) => new Vuex.Store({
|
|||||||
os.store.dispatch('settings/updateHomeProfile');
|
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) {
|
addHomeWidget(state, widget) {
|
||||||
state.settings.homeProfiles[state.device.homeProfile].unshift(widget);
|
state.settings.homeProfiles[state.device.homeProfile].unshift(widget);
|
||||||
os.store.dispatch('settings/updateHomeProfile');
|
os.store.dispatch('settings/updateHomeProfile');
|
||||||
|
Loading…
Reference in New Issue
Block a user