1
0

Quick Actions & global search (#528)

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/528
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
This commit is contained in:
konrad
2021-05-30 18:30:08 +00:00
parent dff84209f0
commit b85beb06eb
13 changed files with 630 additions and 114 deletions

View File

@ -8,7 +8,7 @@ import {
LOADING,
LOADING_MODULE,
MENU_ACTIVE,
ONLINE,
ONLINE, QUICK_ACTIONS_ACTIVE,
} from './mutation-types'
import config from './modules/config'
import auth from './modules/auth'
@ -44,6 +44,7 @@ export const store = new Vuex.Store({
hasTasks: false,
menuActive: true,
keyboardShortcutsActive: false,
quickActionsActive: false,
},
mutations: {
[LOADING](state, loading) {
@ -60,6 +61,12 @@ export const store = new Vuex.Store({
},
[CURRENT_LIST](state, currentList) {
if (currentList === null) {
state.currentList = {}
state.background = null
return
}
setTitle(currentList.title)
// Not sure if this is the right way to do it but hey, it works
@ -127,5 +134,8 @@ export const store = new Vuex.Store({
[KEYBOARD_SHORTCUTS_ACTIVE](state, active) {
state.keyboardShortcutsActive = active
},
[QUICK_ACTIONS_ACTIVE](state, active) {
state.quickActionsActive = active
},
},
})

View File

@ -6,6 +6,7 @@ export const CURRENT_LIST = 'currentList'
export const HAS_TASKS = 'hasTasks'
export const MENU_ACTIVE = 'menuActive'
export const KEYBOARD_SHORTCUTS_ACTIVE = 'keyboardShortcutsActive'
export const QUICK_ACTIONS_ACTIVE = 'quickActionsActive'
export const CONFIG = 'config'
export const AUTH = 'auth'