Skip to content

Commit 2067c7a

Browse files
committed
Merge branch 'Johnny' of https://github.com/oslabs-beta/OverVue into Johnny
2 parents bf730d2 + 14f10fd commit 2067c7a

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

src/components/Canvas.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -289,20 +289,20 @@ export default {
289289
},
290290
mounted() {
291291
// when component is mounted, add ability to delete
292-
window.addEventListener("keyup", (event) => {
293-
if (event.key === "Backspace") {
294-
if (this.activeComponent !== '' && this.noteModalOpen === false) {
295-
this.$store.dispatch("deleteActiveComponent");
296-
}
297-
}
298-
});
299-
window.addEventListener("keyup", (event) => {
300-
if (event.key === "Delete") {
301-
if (this.activeComponent !== '' && this.noteModalOpen === false) {
302-
this.$store.dispatch("deleteActiveComponent");
303-
}
304-
}
305-
});
292+
// window.addEventListener("keyup", (event) => {
293+
// if (event.key === "Backspace") {
294+
// if (this.activeComponent !== '' && this.noteModalOpen === false) {
295+
// this.$store.dispatch("deleteActiveComponent");
296+
// }
297+
// }
298+
// });
299+
// window.addEventListener("keyup", (event) => {
300+
// if (event.key === "Delete") {
301+
// if (this.activeComponent !== '' && this.noteModalOpen === false) {
302+
// this.$store.dispatch("deleteActiveComponent");
303+
// }
304+
// }
305+
// });
306306
// listener for the copy
307307
window.addEventListener("copy", () => {
308308
// if there is an activeComponent, copy info to state using dispatch

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ Description:
5050
:key="element.id + Date.now()">
5151
<p v-if="element.id === this.activeHTML">Your class is - {{ element.class }}</p>
5252
</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>
5361

5462
<!--attribute child's child-->
5563
<div class="AttributeContainer" v-for="element in this.componentMap[this.activeComponent].htmlList"

src/store/mutations.js

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

431431
[types.SET_ACTIVE_LAYER]: (state, payload) => {
432432
const newLayer = cloneDeep(state.activeLayer);
433+
433434
newLayer.lineage.push(payload.text);
434435
newLayer.id = payload.id;
435436
state.activeLayer = newLayer;
@@ -819,6 +820,7 @@ const mutations = {
819820
el.class = payload.class
820821
}
821822
})
823+
822824
},
823825

824826

0 commit comments

Comments
 (0)