Skip to content

Commit da87936

Browse files
committed
changes so child Components in HTMLQueue cannot nest, try 2
1 parent 8edbd69 commit da87936

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Description:
3232
<button class="attributeButton" @click="setActiveElement(element)">
3333
<div class="tooltip"> Edit {{ element[0] }} attributes </div>
3434
</button>
35-
<i v-if='activeComponent === "" || exceptions.includes(element[0]) '></i>
35+
<i v-if='activeComponent === "" || exceptions.includes(element[0]) || moreExceptions.includes(element[0])'></i>
3636
<i v-else class="fas fa fa-angle-double-down fa-md" @click="setLayer({text: element[0], id: element[2]})"></i>
3737
{{ element[0] }}
3838
<i class="fas fa fa-trash fa-md" @click.self="deleteElement([element[1],element[2]])"></i>
@@ -139,8 +139,14 @@ export default {
139139
newTitle += ` > ${el}`
140140
})
141141
return newTitle;
142+
},
143+
moreExceptions: function () {
144+
let childComponent = [];
145+
if(this.activeComponent) {
146+
childComponent = this.componentMap[this.activeComponent].child;
147+
}
148+
return childComponent;
142149
}
143-
144150
},
145151
methods: {
146152
...mapActions(['setActiveHTML', 'setActiveLayer', 'upOneLayer', 'setSelectedIdDrag', 'setIdDrag', 'setSelectedIdDrop', 'setIdDrop', 'dragDropSortHtmlElements', 'dragDropSortSelectedHtmlElements', 'openAttributeModal', 'addActiveComponentClass']),

0 commit comments

Comments
 (0)