update
This commit is contained in:
parent
e3fbebe1b8
commit
4791bd8037
30 changed files with 15738 additions and 278 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue