Skip to content

Commit ad0759a

Browse files
committed
fixed inability to go back up to parent layer in HTML queue
1 parent d3af190 commit ad0759a

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

src/components/ComponentDisplay.vue

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,8 @@
4949
@click="handleAddNotes" />
5050
<q-menu context-menu>
5151
<q-list color="black" class="menu">
52-
<q-item clickable v-ripple v-close-popup @click="handleAddNotes">
53-
<q-item-section>Component Notes</q-item-section>
54-
<q-item-section avatar>
55-
<q-icon color="primary" name="edit_note" />
56-
</q-item-section>
57-
</q-item>
58-
<q-item clickable v-ripple v-close-popup @click="handleAddChild">
59-
<q-item-section>Update Children</q-item-section>
60-
<q-item-section avatar>
61-
<q-icon color="primary" name="add" />
62-
</q-item-section>
63-
</q-item>
6452
<q-item clickable v-ripple v-close-popup id="layer-item">
65-
<q-item-section class="layer"
66-
>Layer</q-item-section
67-
>
53+
<q-item-section class="layer">Layer</q-item-section>
6854
<q-btn
6955
class="minorAction"
7056
color="transparent"
@@ -81,6 +67,18 @@
8167
@click="(e) => handleLayer(e)"
8268
/>
8369
</q-item>
70+
<q-item clickable v-ripple v-close-popup @click="handleAddChild">
71+
<q-item-section>Update Children</q-item-section>
72+
<q-item-section avatar>
73+
<q-icon color="primary" name="add" />
74+
</q-item-section>
75+
</q-item>
76+
<q-item clickable v-ripple v-close-popup @click="handleAddNotes">
77+
<q-item-section>Component Notes</q-item-section>
78+
<q-item-section avatar>
79+
<q-icon color="primary" name="edit_note" />
80+
</q-item-section>
81+
</q-item>
8482
<q-item clickable v-ripple v-close-popup @click="handleExportComponent">
8583
<q-item-section>Export Component</q-item-section>
8684
<q-item-section avatar>
@@ -92,18 +90,19 @@
9290

9391
</vue-draggable-resizable>
9492
<div>
95-
<q-dialog v-model="modalOpen" persistent>
93+
<q-dialog v-model="modalOpen">
9694
<q-select
9795
@select="handleSelect"
98-
id="dropdown"
96+
id="childrenDropdown"
9997
filled
10098
v-model="testModel"
10199
multiple
102100
:options="options"
103101
use-chips
104102
stack-label
103+
dark
105104
label="Select children"
106-
style="width: 250px; background-color: #fd5f00"
105+
style="width: 250px; background-color: #201221;"
107106
/>
108107
</q-dialog>
109108
<!-- some irregularity (delete event listener firing on bkspc/del) with the modal when stored locally, so modal open stored in state, and triggers to local reflect only stateful change.-->
@@ -663,6 +662,12 @@ li:hover{
663662
margin: 0 10px 0;
664663
color: $menutext;
665664
}
665+
666+
#childrenDropdown {
667+
width: 250px;
668+
background: $subprimary;
669+
color: $menutext;
670+
}
666671
.title {
667672
font-size: 20px;
668673
font-weight: bold;

src/components/dashboard_items/HTMLQueue.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ Description:
66

77
<template>
88
<section class="html-queue">
9-
<i v-if='!this.activeLayer.id' class="fas fa fa-chevron-up fa-md" @click="setParentLayer"></i>
10-
<span class='list-title' v-if='this.activeLayer.id !== ""'> Viewing Elements in '{{ depth }}' </span>
9+
<span class='list-title' v-if='this.activeLayer.id !== ""'>
10+
<i class="fas fa fa-chevron-up fa-md" @click="setParentLayer"></i>
11+
<!-- <button v-if='this.activeLayer.id' @click="upOneLayer">Up</button> -->
12+
&nbsp; &nbsp; Viewing Elements in '{{ depth }}'
13+
</span>
1114
<span class='list-title' v-else-if='!this.activeComponent'></span>
1215
<hr>
1316
<div
@@ -74,11 +77,11 @@ export default {
7477
}
7578
},
7679
depth: function () {
77-
let newTitle = ''
80+
let newTitle = '';
7881
this.activeLayer.lineage.forEach(el => {
7982
newTitle += ` > ${el}`
8083
})
81-
return newTitle
84+
return newTitle;
8285
}
8386
8487
},

0 commit comments

Comments
 (0)