Skip to content

Commit e7f6944

Browse files
committed
added open color modal and add nested class
1 parent 066f61d commit e7f6944

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Description:
4444
<p v-if="element.id === this.activeHTML">Your class is - {{ element.class }}</p>
4545
<p v-if="element.id === this.activeHTML"> You've binded to - {{ element.binding }}</p>
4646
</div>
47+
4748
<!--attribute child's child-->
4849
<div class="AttributeContainer" v-for="element in this.componentMap[this.activeComponent].htmlList"
4950
:key="element.id + Date.now()">
@@ -52,12 +53,12 @@ Description:
5253
</ul>
5354
</div>
5455

55-
<div class="AttributeContainer" v-for="element in this.componentMap[this.activeComponent].htmlList"
56+
<!-- <div class="AttributeContainer" v-for="element in this.componentMap[this.activeComponent].htmlList"
5657
:key="element.id + Date.now()">
5758
<ul v-for="element1 in element.children" :key="element1.id + Date.now()">
5859
<li v-if="element1.id === this.activeHTML">You've binded to - {{ element1.binding }}</li>
5960
</ul>
60-
</div>
61+
</div> -->
6162

6263
<div class="formBox">
6364
<q-form autofocus v-on:submit.prevent="submitClass">
@@ -67,15 +68,15 @@ Description:
6768
<q-btn id="comp-btn" class="sidebar-btn" color="secondary" label="Submit Attribute"
6869
:disable="classText.length > 0 ? false : true" @click="submitClass(classText, this.activeHTML)" />
6970
</q-form>
70-
<q-form autofocus v-on:submit.prevent="addBinding">
71+
<!-- <q-form autofocus v-on:submit.prevent="addBinding">
7172
<p class="title">Add Binding:</p>
7273
7374
<q-input label="Add two way binding here" filled dark autofocus true hide-bottom-space v-model="bindingText"
7475
@keyup.enter="addBinding"></q-input>
7576
<q-btn id="comp-btn" class="sidebar-btn" color="secondary" label="Add Binding"
7677
:disable="bindingText.length > 0 ? false : true" @click="addBinding(bindingText, this.activeHTML)">
7778
</q-btn>
78-
</q-form>
79+
</q-form> -->
7980
<q-btn label="Close" @click="this.openAttributeModal" />
8081
</div>
8182
</div>
@@ -200,17 +201,17 @@ export default {
200201
this.addActiveComponentClass(payload);
201202
this.classText = '';
202203
},
203-
addBinding(input, idNum) {
204-
if (input === '') {
205-
return;
206-
}
207-
const payload = {
208-
binding: input,
209-
id: idNum
210-
}
211-
this.addBindingText(payload);
212-
this.bindingText = '';
213-
},
204+
// addBinding(input, idNum) {
205+
// if (input === '') {
206+
// return;
207+
// }
208+
// const payload = {
209+
// binding: input,
210+
// id: idNum
211+
// }
212+
// this.addBindingText(payload);
213+
// this.bindingText = '';
214+
// },
214215
},
215216
watch: {
216217
attributeModalOpen() {

src/store/mutations.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,9 @@ const mutations = {
799799
}
800800
})
801801
},
802-
802+
[types.OPEN_COLOR_MODAL]: (state) => {
803+
state.colorModalOpen = !state.colorModalOpen;
804+
},
803805
[types.OPEN_NOTE_MODAL]: (state) => {
804806
state.noteModalOpen = !state.noteModalOpen;
805807
},

0 commit comments

Comments
 (0)