Skip to content

Commit 36eedcf

Browse files
committed
added bug fix for attribute menu - now opens up on html element select
1 parent 3fe1f16 commit 36eedcf

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Description:
66

77
<template>
88
<section class="html-queue" @dragover="dragOver($event), false">
9-
<span class="list-title" v-if="this.activeLayer.id !== ''">
9+
<span class="list-title" v-if="activeLayer.id !== ''">
1010
<i class="fas fa fa-chevron-up fa-md" @click="setParentLayer"></i>
11-
&nbsp; &nbsp; Viewing Elements in {{ this.activeComponent }} '{{ depth }}'
11+
&nbsp; &nbsp; Viewing Elements in {{ activeComponent }} '{{ depth }}'
1212
<hr />
1313
</span>
14-
<span class="list-title" v-else-if="!this.activeComponent"></span>
14+
<span class="list-title" v-else-if="!activeComponent"></span>
1515
<div group="people" class="list-group">
16-
<p v-if="!this.componentMap[this.activeComponent]?.htmlList.length">
16+
<p v-if="!componentMap[activeComponent]?.htmlList.length">
1717
No HTML elements in component
1818
</p>
1919
<div
@@ -254,16 +254,13 @@ watch(attributeModalOpen, () => {
254254
attributeModal.value = attributeModalOpen.value;
255255
});
256256
257-
watch(
258-
() => activeComponent.value,
259-
() => {
260-
if (activeComponent.value !== "") {
261-
activeComponent.component = true;
262-
} else {
263-
activeComponent.component = false;
264-
}
257+
watch(activeComponent, () => {
258+
if (activeComponent.value !== "") {
259+
activeComponent.component = true;
260+
} else {
261+
activeComponent.component = false;
265262
}
266-
);
263+
});
267264
</script>
268265

269266
<!-- <script>

src/store/state/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const newState :types.State = {
5353
activeTab: 0,
5454
componentChildrenMultiselectValue: [],
5555
modalOpen: false,
56+
attributeModalOpen: false,
5657
noteModalOpen: false,
5758
//test
5859
noteAttributeOpen: false,

types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export type State = {
4141
activeTab: number,
4242
componentChildrenMultiselectValue: [],
4343
modalOpen: boolean,
44+
attributeModalOpen: boolean,
4445
noteModalOpen: boolean,
4546
noteAttributeOpen: boolean,
4647
colorModalOpen: boolean,

0 commit comments

Comments
 (0)