summaryrefslogtreecommitdiff
path: root/src/client/store.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/store.ts')
-rw-r--r--src/client/store.ts19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/client/store.ts b/src/client/store.ts
index 3635e21f1c..c60661d45b 100644
--- a/src/client/store.ts
+++ b/src/client/store.ts
@@ -16,16 +16,27 @@ export const defaultSettings = {
reactions: ['👍', '❤️', '😆', '🤔', '😮', '🎉', '💢', '😥', '😇', '🍮'],
};
-const defaultDeviceUserSettings = {
+export const defaultDeviceUserSettings = {
visibility: 'public',
localOnly: false,
widgets: [],
tl: {
src: 'home'
},
+ menu: [
+ 'notifications',
+ 'messaging',
+ 'drive',
+ '-',
+ 'followRequests',
+ 'featured',
+ 'explore',
+ 'announcements',
+ 'search',
+ ],
};
-const defaultDeviceSettings = {
+export const defaultDeviceSettings = {
lang: null,
loadRawImages: false,
alwaysShowNsfw: false,
@@ -237,6 +248,10 @@ export default () => new Vuex.Store({
};
},
+ setMenu(state, menu) {
+ state.menu = menu;
+ },
+
setVisibility(state, visibility) {
state.visibility = visibility;
},