1
0

Hide hints on start page if a user has tasks (#159)

Format

Add migration to Settings

Merge branch 'master' into feature/hide-hints

Hide hints on start page if a user has tasks

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/159
This commit is contained in:
konrad
2020-06-15 16:47:17 +00:00
parent 23e9d2d268
commit 98fb043e15
5 changed files with 50 additions and 18 deletions

View File

@ -3,7 +3,7 @@ import Vuex from 'vuex'
Vue.use(Vuex)
import {CURRENT_LIST, ERROR_MESSAGE, IS_FULLPAGE, LOADING, ONLINE} from './mutation-types'
import {CURRENT_LIST, ERROR_MESSAGE, HAS_TASKS, IS_FULLPAGE, LOADING, ONLINE} from './mutation-types'
import config from './modules/config'
import auth from './modules/auth'
import namespaces from './modules/namespaces'
@ -29,6 +29,7 @@ export const store = new Vuex.Store({
// This is used to highlight the current list in menu for all list related views
currentList: {id: 0},
background: '',
hasTasks: false,
},
mutations: {
[LOADING](state, loading) {
@ -87,5 +88,8 @@ export const store = new Vuex.Store({
state.currentList = currentList
},
[HAS_TASKS](state, hasTasks) {
state.hasTasks = hasTasks
}
},
})

View File

@ -3,6 +3,7 @@ export const ERROR_MESSAGE = 'errorMessage'
export const ONLINE = 'online'
export const IS_FULLPAGE = 'isFullpage'
export const CURRENT_LIST = 'currentList'
export const HAS_TASKS = 'hasTasks'
export const CONFIG = 'config'
export const AUTH = 'auth'