From 51d81b0b8b53cac54d68f16931941378e966a4f7 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 21 Dec 2022 16:09:59 +0530 Subject: [PATCH] feat(gui): show table icon in LTAR and UI acl Signed-off-by: Pranav C --- packages/nc-gui/components/dashboard/TreeView.vue | 8 +++++--- .../nc-gui/components/dashboard/settings/UIAcl.vue | 12 +++++++++++- packages/nc-gui/components/general/TableIcon.vue | 4 ++-- .../column/LinkedToAnotherRecordOptions.vue | 8 +++++++- .../nocodb/src/lib/meta/api/modelVisibilityApis.ts | 3 ++- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index ebafc02e24..af9b751f78 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -576,10 +576,10 @@ const setIcon = async (icon: string, table: TableType) => { :is="isUIAllowed('tableIconCustomisation') ? Dropdown : 'div'" trigger="click" destroy-popup-on-hide - @click.stop class="flex items-center" + @click.stop > -
+
{
- {{ table.title }} + {{ + table.title + }}
diff --git a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue index f137ed3edd..a7fb2485e7 100644 --- a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue @@ -73,7 +73,13 @@ const filterOption = (value: string, option: { key: string }) => option.key.toLo @change="onDataTypeChange" > - {{ table.title }} +
+
+ +
+ + {{ table.title }} +
diff --git a/packages/nocodb/src/lib/meta/api/modelVisibilityApis.ts b/packages/nocodb/src/lib/meta/api/modelVisibilityApis.ts index 59b7006f71..3504418a0a 100644 --- a/packages/nocodb/src/lib/meta/api/modelVisibilityApis.ts +++ b/packages/nocodb/src/lib/meta/api/modelVisibilityApis.ts @@ -48,7 +48,7 @@ export async function xcVisibilityMetaGet( const roles = ['owner', 'creator', 'viewer', 'editor', 'commenter', 'guest']; const defaultDisabled = roles.reduce((o, r) => ({ ...o, [r]: false }), {}); - + let models = _models || (await Model.list({ @@ -78,6 +78,7 @@ export async function xcVisibilityMetaGet( ptype: model.type, tn: view.title, _tn: view.title, + table_meta: model.meta, ...view, disabled: { ...defaultDisabled }, };