Skip to content

Commit 10553fd

Browse files
authored
Merge pull request #34 from JojuOlaode/exceptionsHTML
Exceptions html
2 parents 6559298 + f2ad759 commit 10553fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/HomeQueue.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Description:
2121
@dblclick.self="setActiveElement(element)"
2222
v-for="(element) in renderList" :key="element[1] + Date.now()"
2323
>
24-
<i v-if='activeComponent === "" ' class="fas fa fa-angle-double-down fa-md" id="unavailable"></i>
24+
<i v-if='activeComponent === "" || exceptions.includes(element[0]) ' class="fas fa fa-angle-double-down fa-md" id="unavailable"></i>
2525
<i v-else class="fas fa fa-angle-double-down fa-md" @click="setLayer({text: element[0], id: element[2]})"></i>
2626
{{ element[0] }}
2727
<i class="fas fa fa-trash fa-md" @click.self="deleteElement([element[1],element[2]])"></i>
@@ -49,7 +49,8 @@ export default {
4949
},
5050
data () {
5151
return {
52-
depth: ''
52+
depth: '',
53+
exceptions: ['input', 'img', 'link']
5354
}
5455
},
5556
computed: {
@@ -82,7 +83,7 @@ export default {
8283
else this.$store.dispatch(deleteFromComponentHtmlList, id[1])
8384
},
8485
setActiveElement (element) {
85-
if (this.activeComponent !== '') {
86+
if (this.activeComponent !== '' && !this.exceptions.includes(element[0])) {
8687
this.setActiveHTML(element)
8788
}
8889
},

0 commit comments

Comments
 (0)