Profile settings: add global Notification toggle

This commit is contained in:
10G Meow 2023-12-07 20:53:24 +02:00
parent 1ddedac0ef
commit 3ad766fe12
8 changed files with 128 additions and 79 deletions

View file

@ -41,6 +41,7 @@ const vuexPersistLocalStorage = new VuexPersist({
language: state.language,
currentRoomId: state.currentRoomId,
hasShownMissedItemsHint: state.hasShownMissedItemsHint,
globalNotification: state.globalNotification,
};
} else {
return {};
@ -98,6 +99,9 @@ export default new Vuex.Store({
},
setHasShownMissedItemsHint(state, flag) {
state.hasShownMissedItemsHint = flag;
},
setGlobalNotification(state, flag) {
state.globalNotification = flag;
}
},
actions: {