+
{
- console.log(dashboardStore.layout,dashboardStore.currentDashboard)
-})
+onMounted(() => {
+ console.log(dashboardStore.layout, dashboardStore.currentDashboard);
+});
import {
EntityType,
AllTools,
@@ -217,13 +220,9 @@ const appStore = useAppStoreWithOut();
const traceStore = useTraceStore();
const params = useRoute().params;
const selectedSelector = ref("");
-const showFilter = computed(
- () => dashboardStore.layout[0]?.activedTabIndex === 2
-);
-const showLogHeader = computed(
- () => dashboardStore.layout[0]?.activedTabIndex === 3
-);
-const currentTraceView = computed(() => traceStore.currentView)
+const showFilter = computed(() => dashboardStore.currentTabName === "Trace");
+const showLogHeader = computed(() => dashboardStore.currentTabName === "Log");
+const currentTraceView = computed(() => traceStore.currentView);
const { query } = useRoute();
dashboardStore.setViewMode(query["fullview"] === "true");