2017-05-21 20:43:58 +00:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
export default {
|
2017-05-26 00:54:03 +00:00
|
|
|
namespaced: true,
|
2017-05-21 20:43:58 +00:00
|
|
|
state: {
|
2017-05-26 00:54:03 +00:00
|
|
|
entrypath: '',
|
|
|
|
shown: false,
|
|
|
|
invalid: false
|
2017-05-21 20:43:58 +00:00
|
|
|
},
|
|
|
|
getters: {},
|
|
|
|
mutations: {
|
2017-05-26 00:54:03 +00:00
|
|
|
shownChange: (state, shownState) => { state.shown = shownState },
|
|
|
|
pathChange: (state, newpath) => { state.entrypath = newpath }
|
2017-05-21 20:43:58 +00:00
|
|
|
},
|
|
|
|
actions: {
|
2017-05-26 00:54:03 +00:00
|
|
|
open({ commit }) { commit('shownChange', true) },
|
|
|
|
close({ commit }) { commit('shownChange', false) }
|
2017-05-21 20:43:58 +00:00
|
|
|
}
|
|
|
|
}
|