Skip to content

Commit 238d392

Browse files
committed
added binding comments again
1 parent e7f6944 commit 238d392

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ Description:
5353
</ul>
5454
</div>
5555

56-
<!-- <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"
5757
:key="element.id + Date.now()">
5858
<ul v-for="element1 in element.children" :key="element1.id + Date.now()">
5959
<li v-if="element1.id === this.activeHTML">You've binded to - {{ element1.binding }}</li>
6060
</ul>
61-
</div> -->
61+
</div>
6262

6363
<div class="formBox">
6464
<q-form autofocus v-on:submit.prevent="submitClass">
@@ -68,15 +68,15 @@ Description:
6868
<q-btn id="comp-btn" class="sidebar-btn" color="secondary" label="Submit Attribute"
6969
:disable="classText.length > 0 ? false : true" @click="submitClass(classText, this.activeHTML)" />
7070
</q-form>
71-
<!-- <q-form autofocus v-on:submit.prevent="addBinding">
71+
<q-form autofocus v-on:submit.prevent="addBinding">
7272
<p class="title">Add Binding:</p>
7373

7474
<q-input label="Add two way binding here" filled dark autofocus true hide-bottom-space v-model="bindingText"
7575
@keyup.enter="addBinding"></q-input>
7676
<q-btn id="comp-btn" class="sidebar-btn" color="secondary" label="Add Binding"
7777
:disable="bindingText.length > 0 ? false : true" @click="addBinding(bindingText, this.activeHTML)">
7878
</q-btn>
79-
</q-form> -->
79+
</q-form>
8080
<q-btn label="Close" @click="this.openAttributeModal" />
8181
</div>
8282
</div>
@@ -201,17 +201,17 @@ export default {
201201
this.addActiveComponentClass(payload);
202202
this.classText = '';
203203
},
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-
// },
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+
},
215215
},
216216
watch: {
217217
attributeModalOpen() {

0 commit comments

Comments
 (0)