This commit is contained in:
Matthieu Bessat 2020-07-19 15:27:26 +02:00
parent f2b6257a43
commit 90cd5ec582
7 changed files with 89 additions and 26 deletions

View file

@ -14,6 +14,7 @@ export default new Vuex.Store({
tags: [],
data: {
name: '',
tags: [],
descriptionShort: '',
descriptionLong: '',
thumbnail: {
@ -41,7 +42,7 @@ export default new Vuex.Store({
},
debug: false,
validateMain: false,
validateMainCallback: () => false
validateMainCallback: (d: boolean) => false
},
mutations: {
SET_DEBUG (state, payload) {
@ -74,9 +75,9 @@ export default new Vuex.Store({
},
VALIDATE_MAIN (state, callback) {
state.validateMain = true
state.validateMainCallback = () => {
state.validateMainCallback = (d: boolean) => {
state.validateMain = false
return callback()
return callback(d)
}
}
},