Simple way to build clouds from nothing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
868 B

export const state = () => ({
breadcrumbs: [],
title: '---',
menu: [
{ icon: 'mdi-apps', title: 'Welcome', to: '/admin' },
require('./landingpage').menu,
require('./resources').menu
],
snackbar: {
timeout: 6000,
color: 'error',
showIt: false,
msg: ''
}
})
export const mutations = {
addItem (state, item) {
state.items.push(item)
},
setTitle (state, data) {
state.title = data
},
setBreadcrumbs (state, data) {
data.forEach((item) => {
item.replace = true
item.nuxt = true
})
data[data.length - 1].disabled = true
state.breadcrumbs = data
},
snack (state, data) {
state.snackbar.showIt = true
state.snackbar.msg = data.msg
state.snackbar.color = data.color || ''
},
snackClose (state, data) {
state.snackbar.showIt = false
}
}
export const actions = {}