feat: add tag management feature

This commit is contained in:
Matthieu Bessat 2020-07-11 00:57:23 +02:00
parent e284266b91
commit e3fbebe1b8
17 changed files with 726 additions and 86 deletions

View file

@ -5,8 +5,23 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
alert: {
color: '',
text: '',
enabled: false
}
},
mutations: {
ADD_ALERT (state, payload) {
state.alert = {
color: payload.color,
text: payload.text,
enabled: true
}
},
DISABLE_ALERT (state) {
state.alert.enabled = false
}
},
actions: {
},