feat(link shares): hide the logo if a query parameter was passed
This commit is contained in:
parent
b8d77a617b
commit
63f5f446fd
5 changed files with 18 additions and 5 deletions
|
|
@ -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}) {
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@ export const KEYBOARD_SHORTCUTS_ACTIVE = 'keyboardShortcutsActive'
|
|||
export const QUICK_ACTIONS_ACTIVE = 'quickActionsActive'
|
||||
export const BACKGROUND = 'background'
|
||||
export const BLUR_HASH = 'blurHash'
|
||||
export const LOGO_VISIBLE = 'logoVisible'
|
||||
|
||||
export const CONFIG = 'config'
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ export interface RootStoreState {
|
|||
menuActive: boolean,
|
||||
keyboardShortcutsActive: boolean,
|
||||
quickActionsActive: boolean,
|
||||
logoVisible: boolean,
|
||||
}
|
||||
|
||||
export interface AttachmentState {
|
||||
|
|
|
|||
Reference in a new issue