From a88e3cde9a64140f263dcd5d2ecb219c26f3b833 Mon Sep 17 00:00:00 2001
From: braks <78412429+bcakmakoglu@users.noreply.github.com>
Date: Tue, 9 Aug 2022 13:43:12 +0200
Subject: [PATCH] feat(gui-v2): mark open table & view
---
packages/nc-gui-v2/components/dashboard/TreeView.vue | 12 ++++++++++--
.../components/smartsheet/sidebar/MenuTop.vue | 6 ++++--
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue
index 9673f6a5d1..7d524ea5e5 100644
--- a/packages/nc-gui-v2/components/dashboard/TreeView.vue
+++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue
@@ -185,7 +185,11 @@ const addTableTab = (table: TableType) => {
v-for="table of tables"
:key="table.id"
v-t="['a:table:open']"
- :class="[{ hidden: !filteredTables?.includes(table) }, `nc-project-tree-tbl nc-project-tree-tbl-${table.title}`]"
+ :class="[
+ { hidden: !filteredTables?.includes(table) },
+ `nc-project-tree-tbl nc-project-tree-tbl-${table.title}`,
+ route.params.title.includes(table.title) ? 'bg-blue-500/15' : '',
+ ]"
class="pl-5 pr-3 py-2 text-sm cursor-pointer group"
:data-order="table.order"
:data-id="table.id"
@@ -199,7 +203,11 @@ const addTableTab = (table: TableType) => {
@click.stop.prevent
/>
-