mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
refactored traceDetails toggle implementations
This commit is contained in:
parent
d37551158b
commit
02ca4a35bc
@ -31,10 +31,7 @@ limitations under the License. -->
|
||||
</el-popover>
|
||||
<div class="trace flex-h">
|
||||
<TraceList @show:trace="showTraceDetails" v-if="traceListActive" />
|
||||
<TraceDetail
|
||||
@show:list="traceListActive = true"
|
||||
v-if="!traceListActive"
|
||||
/>
|
||||
<TraceDetail @show:list="showTraceList" v-if="!traceListActive" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -64,7 +61,10 @@ function removeWidget() {
|
||||
dashboardStore.removeControls(props.data);
|
||||
}
|
||||
function showTraceDetails() {
|
||||
traceListActive.value = false;
|
||||
traceStore.currentView === "traceDetails";
|
||||
}
|
||||
function showTraceList() {
|
||||
traceStore.currentView === "traceList";
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user