Skip to content

Commit efba3d6

Browse files
Add missing state
1 parent 01794b1 commit efba3d6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

resources/js/store/modules/canvas.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const state = {
2424
logoWidth: 0,
2525
logoImage: null,
2626
logoType: null,
27+
centered: false,
2728
backgroundType: BackgroundTypes.gradient,
2829
backgroundImage: null,
2930
backgroundImageId: false,
@@ -116,6 +117,7 @@ const mutations = {
116117
setLogoWidth: (state, width) => state.logoWidth = width,
117118
setLogoImage: (state, image) => state.logoImage = image,
118119
setLogoType: (state, type) => state.logoType = type,
120+
setCentered: (state, value) => state.centered = value,
119121
setBackgroundType: (state, type) => state.backgroundType = type,
120122
setBackgroundImage: (state, image) => state.backgroundImage = image,
121123
setBackgroundImageId: (state, id) => state.backgroundImageId = id,
@@ -170,6 +172,9 @@ const actions = {
170172
setLogoType({commit}, type) {
171173
commit('setLogoType', type)
172174
},
175+
setCentered({commit}, value) {
176+
commit('setCentered', value)
177+
},
173178
setBackgroundType({commit}, type) {
174179
commit('setBackgroundType', type)
175180
},

0 commit comments

Comments
 (0)