Skip to content

Commit da9cb40

Browse files
[backport cloud/1.47] fix: use destructive token for Delete Workspace menu items (#13800)
Backport of #13784 to `cloud/1.47` Automatically created by backport workflow. Co-authored-by: Dante <bunggl@naver.com>
1 parent d968cbc commit da9cb40

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/platform/workspace/components/dialogs/settings/WorkspaceMenuButton.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ const menuItems = computed<MenuItem[]>(() => {
6666
items.push({
6767
label: t('workspacePanel.menu.deleteWorkspace'),
6868
icon: 'pi pi-trash',
69-
class: isDeleteDisabled.value ? 'text-danger/50' : 'text-danger',
69+
class: isDeleteDisabled.value
70+
? 'text-destructive-background/50'
71+
: 'text-destructive-background',
7072
disabled: isDeleteDisabled.value,
7173
tooltip: deleteTooltip.value,
7274
command: isDeleteDisabled.value

src/platform/workspace/composables/useWorkspaceMenuItems.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export function useWorkspaceMenuItems() {
9292
items.push({
9393
label: t('workspacePanel.menu.deleteWorkspace'),
9494
class: isDeleteDisabled.value
95-
? 'data-disabled:cursor-not-allowed data-disabled:text-danger/50 data-disabled:pointer-events-auto'
96-
: 'text-danger',
95+
? 'data-disabled:cursor-not-allowed data-disabled:text-destructive-background/50 data-disabled:pointer-events-auto'
96+
: 'text-destructive-background',
9797
disabled: isDeleteDisabled.value,
9898
tooltip: deleteTooltip.value,
9999
command: isDeleteDisabled.value ? undefined : deleteWorkspace

0 commit comments

Comments
 (0)