Skip to content

Commit 4bc4633

Browse files
committed
before merge
1 parent 6b1b210 commit 4bc4633

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/store/actions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ const actions = {
109109
[types.updateComponentPosition]: ({ commit }, payload) => {
110110
commit(types.UPDATE_COMPONENT_POSITION, payload);
111111
},
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+
},
115115

116116
[types.updateComponentSize]: ({ commit }, payload) => {
117117
commit(types.UPDATE_COMPONENT_SIZE, payload);

src/store/mutations.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ const mutations = {
207207
};
208208
},
209209
// //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+
},
213215
[types.DELETE_ACTION_FROM_COMPONENT]: (state, payload) => {
214216
state.componentMap[state.activeComponent].actions = state.componentMap[state.activeComponent].actions.filter(
215217
(action) => action !== payload);

src/store/types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const addActiveComponentClass = 'addActiveComponentClass'
8787
export const deleteActiveComponentClass = 'deleteActiveComponentClass'
8888

8989
//adding vmodel info
90-
// export const ADD_BINDING = 'ADD_BINDING'
90+
export const ADD_BINDING = 'ADD_BINDING'
9191
//
9292
export const deleteActiveComponentNote = 'deleteActiveComponentNote'
9393
export const addActiveComponentNote = 'addActiveComponentNote'

0 commit comments

Comments
 (0)