Skip to content

Commit 0626876

Browse files
committed
Merge branch 'dev' into Johnny
2 parents 1fb663f + 68a7f4d commit 0626876

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,27 @@ Description:
4040
</div>
4141
</div>
4242

43+
<!--START OF CHANGES-->
44+
<!-- &nbsp; &nbsp; Viewing Elements in {{ this.activeComponent }} '{{ depth }}'
45+
<hr>
46+
</span>
47+
<span class='list-title' v-else-if='!this.activeComponent'></span>
48+
<div group="people" class="list-group">
49+
<p v-if='!this.componentMap[this.activeComponent]?.htmlList.length'>No HTML elements in component</p>
50+
51+
<div id="tooltipCon" :class="activeHTML === element[2] ? 'list-group-item-selected' : 'list-group-item'"
52+
v-for="(element) in renderList" :key="element[1] + Date.now()">
53+
54+
<button class="attributeButton" @click="setActiveElement(element)">
55+
<div class="tooltip"> Edit {{ element[0] }} attributes </div>
56+
</button>
57+
<i v-if='activeComponent === "" || exceptions.includes(element[0])'></i>
58+
<i v-else class="fas fa fa-angle-double-down fa-md" @click="setLayer({ text: element[0], id: element[2] })"></i>
59+
{{ element[0] }}
60+
<i class="fas fa fa-trash fa-md" @click.self="deleteElement([element[1], element[2]])"></i>
61+
</div>
62+
</div> -->
63+
4364
<!-- attribute pop-up -->
4465
<q-dialog v-model="attributeModal">
4566
<!-- @update:model-value="setActiveElement" -->
@@ -50,14 +71,6 @@ Description:
5071
:key="element.id + Date.now()">
5172
<p v-if="element.id === this.activeHTML">Your class is - {{ element.class }}</p>
5273
</div>
53-
<!--attribute child's child-->
54-
<div class="AttributeContainer" v-for="element in this.componentMap[this.activeComponent].htmlList"
55-
:key="element.id + Date.now()">
56-
<ul v-for="element1 in element.children"
57-
:key="element1.id + Date.now()">
58-
<li v-if="element1.id === this.activeHTML">Your class is - {{ element1.class }}</li>
59-
</ul>
60-
</div>
6174

6275
<div class="formBox">
6376
<q-form autofocus v-on:submit.prevent="submitClass">

src/store/mutations.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ const mutations = {
430430

431431
[types.SET_ACTIVE_LAYER]: (state, payload) => {
432432
const newLayer = cloneDeep(state.activeLayer);
433-
434433
newLayer.lineage.push(payload.text);
435434
newLayer.id = payload.id;
436435
state.activeLayer = newLayer;
@@ -820,7 +819,6 @@ const mutations = {
820819
el.class = payload.class
821820
}
822821
})
823-
824822
},
825823

826824

0 commit comments

Comments
 (0)