File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,9 @@ const actions = {
109
109
[ types . updateComponentPosition ] : ( { commit } , payload ) => {
110
110
commit ( types . UPDATE_COMPONENT_POSITION , payload ) ;
111
111
} ,
112
- // [types.addBinding ]: ({ commit }, payload) => {
113
- // commit(types.ADD_BINDING, payload);
114
- // },
112
+ [ types . ADD_BINDING ] : ( { commit } , payload ) => {
113
+ commit ( types . ADD_BINDING , payload ) ;
114
+ } ,
115
115
116
116
[ types . updateComponentSize ] : ( { commit } , payload ) => {
117
117
commit ( types . UPDATE_COMPONENT_SIZE , payload ) ;
Original file line number Diff line number Diff line change @@ -207,9 +207,11 @@ const mutations = {
207
207
} ;
208
208
} ,
209
209
// //add binding
210
- // [types.ADD_BINDING]: (state, payload) => {
211
- // //access the htmlList, add payload to the empty bind obj
212
- // },
210
+ [ types . ADD_BINDING ] : ( state , payload ) => {
211
+ //access the htmlList, add payload to the empty bind obj
212
+ //state.component
213
+ console . log ( state . componentMap [ state . activeComponenet ] )
214
+ } ,
213
215
[ types . DELETE_ACTION_FROM_COMPONENT ] : ( state , payload ) => {
214
216
state . componentMap [ state . activeComponent ] . actions = state . componentMap [ state . activeComponent ] . actions . filter (
215
217
( action ) => action !== payload ) ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export const addActiveComponentClass = 'addActiveComponentClass'
87
87
export const deleteActiveComponentClass = 'deleteActiveComponentClass'
88
88
89
89
//adding vmodel info
90
- // export const ADD_BINDING = 'ADD_BINDING'
90
+ export const ADD_BINDING = 'ADD_BINDING'
91
91
//
92
92
export const deleteActiveComponentNote = 'deleteActiveComponentNote'
93
93
export const addActiveComponentNote = 'addActiveComponentNote'
You can’t perform that action at this time.
0 commit comments