Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): button loading icon color issue

Ramesh Mane8d647a812a8f
diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/context/Cell.vue b/packages/nc-gui/components/smartsheet/grid/canvas/context/Cell.vue
index e56c4b0b95..d2bd6f2fcb 100644
--- a/packages/nc-gui/components/smartsheet/grid/canvas/context/Cell.vue
+++ b/packages/nc-gui/components/smartsheet/grid/canvas/context/Cell.vue
@@ -371,7 +371,7 @@ const execBulkAction = async (path: Array<number>) => {
class="nc-base-menu-item"
data-testid="context-menu-item-bulk"
:disabled="isSelectionOnlyAI.disabled"
- @click="execBulkAction(contextMenuPath)"
+ @click="execBulkAction(contextMenuPath || [])"
>
<div class="flex gap-2 items-center">
<GeneralIcon icon="ncAutoAwesome" class="h-4 w-4" />
@@ -387,7 +387,7 @@ const execBulkAction = async (path: Array<number>) => {
class="nc-base-menu-item"
data-testid="context-menu-item-bulk-script"
:disabled="isSelectionOnlyScript.disabled"
- @click="execBulkAction(contextMenuPath)"
+ @click="execBulkAction(contextMenuPath || [])"
>
<div class="flex gap-2 items-center">
<GeneralIcon icon="ncScript" class="h-4 w-4" />
diff --git a/packages/nc-gui/components/virtual-cell/Button.vue b/packages/nc-gui/components/virtual-cell/Button.vue
index 50a7b4ed75..42704095c6 100644
--- a/packages/nc-gui/components/virtual-cell/Button.vue
+++ b/packages/nc-gui/components/virtual-cell/Button.vue
@@ -227,12 +227,7 @@ const triggerAction = async () => {
isExecuting ||
(pk && generatingRows.includes(pk) && column?.id && generatingColumnRows.includes(column.id))
"
- :class="{
- solid: column.colOptions.theme === 'solid',
- text: column.colOptions.theme === 'text',
- light: column.colOptions.theme === 'light',
- }"
- class="flex btn-cell-colors !bg-transparent w-4 h-4"
+ class="flex w-4 h-4 !text-current"
size="medium"
/>
<GeneralIcon v-else-if="column.colOptions.icon" :icon="column.colOptions.icon" class="!w-4 min-w-4 min-h-4 !h-4" />
@@ -291,72 +286,42 @@ const triggerAction = async () => {
&.brand {
@apply bg-brand-500 hover:not(.disabled):bg-brand-600;
- .nc-loader {
- @apply !text-brand-500;
- }
}
&.red {
@apply bg-red-600 hover:not(.disabled):bg-red-700;
- .nc-loader {
- @apply !text-red-600;
- }
}
&.green {
@apply bg-green-600 hover:not(.disabled):bg-green-700;
- .nc-loader {
- @apply !text-green-600;
- }
}
&.maroon {
@apply bg-maroon-600 hover:not(.disabled):bg-maroon-700;
- .nc-loader {
- @apply !text-maroon-600;
- }
}
&.blue {
@apply bg-blue-600 hover:not(.disabled):bg-blue-700;
- .nc-loader {
- @apply !text-blue-600;
- }
}
&.orange {
@apply bg-orange-600 hover:not(.disabled):bg-orange-700;
- .nc-loader {
- @apply !text-orange-600;
- }
}
&.pink {
@apply bg-pink-600 hover:not(.disabled):bg-pink-700;
- .nc-loader {
- @apply !text-pink-600;
- }
}
&.purple {
@apply bg-purple-500 hover:not(.disabled):bg-purple-700;
- .nc-loader {
- @apply !text-purple-600;
- }
}
&.yellow {
@apply bg-yellow-600 hover:not(.disabled):bg-yellow-700;
- .nc-loader {
- @apply !text-yellow-600;
- }
}
&.gray {
@apply bg-gray-600 hover:not(.disabled):bg-gray-700;
- .nc-loader {
- @apply !text-gray-600;
- }
}
}
@@ -414,72 +379,42 @@ const triggerAction = async () => {
&.brand {
@apply text-brand-500;
- .nc-loader {
- @apply !text-brand-500;
- }
}
&.red {
@apply text-red-600;
- .nc-loader {
- @apply !text-red-600;
- }
}
&.green {
@apply text-green-600;
- .nc-loader {
- @apply !text-green-600;
- }
}
&.maroon {
@apply text-maroon-600;
- .nc-loader {
- @apply !text-maroon-600;
- }
}
&.blue {
@apply text-blue-600;
- .nc-loader {
- @apply !text-blue-600;
- }
}
&.orange {
@apply text-orange-600;
- .nc-loader {
- @apply !text-orange-600;
- }
}
&.pink {
@apply text-pink-600;
- .nc-loader {
- @apply !text-pink-600;
- }
}
&.purple {
@apply text-purple-500;
- .nc-loader {
- @apply !text-purple-600;
- }
}
&.yellow {
@apply text-yellow-600;
- .nc-loader {
- @apply !text-yellow-600;
- }
}
&.gray {
@apply text-gray-600;
- .nc-loader {
- @apply !text-gray-600;
- }
}
}
}