From 5baa8da556efd4e33fa05da996a3a6357cbdb82e Mon Sep 17 00:00:00 2001
From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com>
Date: Tue, 12 Mar 2024 06:45:01 +0000
Subject: [PATCH] fix(nc-gui): revert show base emoji if exist changes
---
packages/nc-gui/components/cmd-k/index.vue | 10 ++--------
.../components/dashboard/TreeView/ProjectNode.vue | 1 -
.../nc-gui/components/general/BaseIconColorPicker.vue | 9 ++-------
packages/nc-gui/components/workspace/ProjectList.vue | 1 -
.../nocodb/src/services/command-palette.service.ts | 4 ++--
5 files changed, 6 insertions(+), 19 deletions(-)
diff --git a/packages/nc-gui/components/cmd-k/index.vue b/packages/nc-gui/components/cmd-k/index.vue
index 66b2a37dfb..f7320a430f 100644
--- a/packages/nc-gui/components/cmd-k/index.vue
+++ b/packages/nc-gui/components/cmd-k/index.vue
@@ -386,14 +386,8 @@ defineExpose({
@click="fireAction(act)"
>
-
-
+
+
diff --git a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
index 1351b1aa1f..334469dab3 100644
--- a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
+++ b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
@@ -432,7 +432,6 @@ const projectDelete = () => {
:key="`${base.id}_${parseProp(base.meta).iconColor}`"
:type="base?.type"
:model-value="parseProp(base.meta).iconColor"
- :emoji="parseProp(base.meta).icon"
size="small"
:readonly="(base?.type && base?.type !== 'database') || !isUIAllowed('baseRename')"
@update:model-value="setColor($event, base)"
diff --git a/packages/nc-gui/components/general/BaseIconColorPicker.vue b/packages/nc-gui/components/general/BaseIconColorPicker.vue
index 4215501d79..0951d68510 100644
--- a/packages/nc-gui/components/general/BaseIconColorPicker.vue
+++ b/packages/nc-gui/components/general/BaseIconColorPicker.vue
@@ -7,7 +7,6 @@ const props = withDefaults(
defineProps<{
type?: NcProjectType | string
modelValue?: string
- emoji?: string
size?: 'small' | 'medium' | 'large' | 'xlarge'
readonly?: boolean
iconClass?: string
@@ -59,7 +58,7 @@ watch(
diff --git a/packages/nc-gui/components/workspace/ProjectList.vue b/packages/nc-gui/components/workspace/ProjectList.vue
index 325f59c2b6..5909400f33 100644
--- a/packages/nc-gui/components/workspace/ProjectList.vue
+++ b/packages/nc-gui/components/workspace/ProjectList.vue
@@ -255,7 +255,6 @@ const setColor = async (color: string, base: BaseType) => {
:key="`${record.id}_${parseProp(record.meta).iconColor}`"
:type="record?.type"
:model-value="parseProp(record.meta).iconColor"
- :emoji="parseProp(record.meta).icon"
:readonly="(record?.type && record?.type !== 'database') || !isUIAllowed('baseRename')"
@update:model-value="setColor($event, record)"
>
diff --git a/packages/nocodb/src/services/command-palette.service.ts b/packages/nocodb/src/services/command-palette.service.ts
index ccb00f39a3..6076461a02 100644
--- a/packages/nocodb/src/services/command-palette.service.ts
+++ b/packages/nocodb/src/services/command-palette.service.ts
@@ -28,7 +28,7 @@ export class CommandPaletteService {
cmdData.push({
id: `p-${base.id}`,
title: base.title,
- icon: deserializeJSON(base.meta)?.icon,
+ icon: 'project',
iconColor: deserializeJSON(base.meta)?.iconColor,
section: 'Bases',
scopePayload: {
@@ -71,7 +71,7 @@ export class CommandPaletteService {
cmdData.push({
id: `p-${b.id}`,
title: b.title,
- icon: deserializeJSON(b.meta)?.icon,
+ icon: 'project',
iconColor: deserializeJSON(b.meta)?.iconColor,
section: 'Bases',
});