This commit is contained in:
Matthieu Bessat 2020-07-14 23:58:34 +02:00
parent e3fbebe1b8
commit 4791bd8037
30 changed files with 15738 additions and 278 deletions

View file

@ -9,9 +9,34 @@ export default new Vuex.Store({
color: '',
text: '',
enabled: false
},
title: '',
data: {
name: '',
descriptionShort: '',
descriptionLong: '',
thumbnail: {
key: '',
contentType: '',
location: '',
type: 'thumbnail'
},
contacts: {
facebook: '',
twitter: '',
instagram: '',
website: '',
address: '',
person: '',
email: '',
phone: ''
}
}
},
mutations: {
SET_TITLE (state, payload) {
state.title = payload
},
ADD_ALERT (state, payload) {
state.alert = {
color: payload.color,
@ -21,6 +46,11 @@ export default new Vuex.Store({
},
DISABLE_ALERT (state) {
state.alert.enabled = false
},
SET_DATA (state, payload) {
if (payload !== null) {
state.data = { ...state.data, ...payload }
}
}
},
actions: {