File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
<div :class =" activeHTML === element[2] ? 'list-group-item-selected' : 'list-group-item'" @dblclick.self =" setActiveElement(element)" v-for =" (element) in renderList" :key =" element[1] + Date.now()" >
17
17
<i class =" fas fa fa-angle-double-down fa-md" @click =" setLayer({text: element[0], id: element[2]})" ></i >
18
18
{{ element[0] }}
19
- <i class =" fas fa fa-trash fa-md" @click.self =" deleteElement(element[2 ])" ></i >
19
+ <i class =" fas fa fa-trash fa-md" @click.self =" deleteElement([ element[1],element[2] ])" ></i >
20
20
</div >
21
21
</draggable >
22
22
</section >
@@ -83,8 +83,8 @@ export default {
83
83
methods: {
84
84
... mapActions ([' setActiveHTML' , ' setActiveLayer' , ' upOneLayer' ]),
85
85
deleteElement (id ) {
86
- if (this .activeComponent === ' ' ) this .$store .dispatch (deleteSelectedElement, id)
87
- else this .$store .dispatch (deleteFromComponentHtmlList, id)
86
+ if (this .activeComponent === ' ' ) this .$store .dispatch (deleteSelectedElement, id[ 0 ] )
87
+ else this .$store .dispatch (deleteFromComponentHtmlList, id[ 1 ] )
88
88
},
89
89
setActiveElement (element ) {
90
90
this .setActiveHTML (element)
You can’t perform that action at this time.
0 commit comments