feat(link shares): hide the logo if a query parameter was passed

This commit is contained in:
kolaente 2022-09-07 21:49:14 +02:00 committed by Gitea
parent b8d77a617b
commit 63f5f446fd
5 changed files with 18 additions and 5 deletions

View file

@ -9,7 +9,7 @@ import {
HAS_TASKS,
KEYBOARD_SHORTCUTS_ACTIVE,
LOADING,
LOADING_MODULE,
LOADING_MODULE, LOGO_VISIBLE,
MENU_ACTIVE,
QUICK_ACTIONS_ACTIVE,
} from './mutation-types'
@ -62,6 +62,7 @@ export const store = createStore<RootStoreState>({
menuActive: true,
keyboardShortcutsActive: false,
quickActionsActive: false,
logoVisible: true,
}),
mutations: {
[LOADING](state, loading) {
@ -100,6 +101,9 @@ export const store = createStore<RootStoreState>({
[BLUR_HASH](state, blurHash) {
state.blurHash = blurHash
},
[LOGO_VISIBLE](state, visible: boolean) {
state.logoVisible = visible
},
},
actions: {
async [CURRENT_LIST]({state, commit}, {list, forceUpdate = false}) {