Skip to content

Modern Docker Management, Designed for Everyone

chore: use destructive variant for dropdowns

Kyle Mendelld5de0ddcbe18
diff --git a/frontend/src/routes/compose/compose-table.svelte b/frontend/src/routes/compose/compose-table.svelte
index f12fef808..a9811b15d 100644
--- a/frontend/src/routes/compose/compose-table.svelte
+++ b/frontend/src/routes/compose/compose-table.svelte
@@ -275,7 +275,7 @@
<DropdownMenu.Separator />
<DropdownMenu.Item
- class="focus:text-red-700! text-red-500"
+ variant="destructive"
onclick={() => performStackAction('destroy', item.id)}
disabled={isLoading.remove || isAnyLoading}
>
diff --git a/frontend/src/routes/containers/container-table.svelte b/frontend/src/routes/containers/container-table.svelte
index 989d2c623..03b0e0558 100644
--- a/frontend/src/routes/containers/container-table.svelte
+++ b/frontend/src/routes/containers/container-table.svelte
@@ -259,7 +259,7 @@
<DropdownMenu.Separator />
<DropdownMenu.Item
- class="focus:text-red-700! text-red-500"
+ variant="destructive"
onclick={() => handleRemoveContainer(item.Id || item.id)}
disabled={isLoading.remove || isAnyLoading}
>
diff --git a/frontend/src/routes/images/image-table.svelte b/frontend/src/routes/images/image-table.svelte
index 3fc2e0a59..8e9775b24 100644
--- a/frontend/src/routes/images/image-table.svelte
+++ b/frontend/src/routes/images/image-table.svelte
@@ -333,7 +333,7 @@
</DropdownMenu.Item>
<DropdownMenu.Separator />
<DropdownMenu.Item
- class="focus:text-red-700! text-red-500"
+ variant="destructive"
onclick={() => handleDeleteSelected()}
disabled={isLoading.removing}
>
diff --git a/frontend/src/routes/networks/network-table.svelte b/frontend/src/routes/networks/network-table.svelte
index cb39e2052..33c637fa7 100644
--- a/frontend/src/routes/networks/network-table.svelte
+++ b/frontend/src/routes/networks/network-table.svelte
@@ -238,7 +238,7 @@
Inspect
</DropdownMenu.Item>
<DropdownMenu.Item
- class="focus:text-red-700! text-red-500"
+ variant="destructive"
onclick={() => handleDeleteNetwork(item.ID, item.Name)}
disabled={DEFAULT_NETWORK_NAMES.has(item.Name) || isAnyLoading}
>
diff --git a/frontend/src/routes/volumes/volume-table.svelte b/frontend/src/routes/volumes/volume-table.svelte
index f75f2db6a..258ef0385 100644
--- a/frontend/src/routes/volumes/volume-table.svelte
+++ b/frontend/src/routes/volumes/volume-table.svelte
@@ -123,7 +123,7 @@
async function handleRemoveVolumeConfirm(name: string) {
openConfirmDialog({
- title: `Remove Volume "${name}"`,
+ title: `Remove Volume`,
message: `Are you sure you want to remove the volume "${name}"? This action cannot be undone and will permanently delete all data stored in this volume.`,
confirm: {
label: 'Remove',
@@ -201,7 +201,7 @@
>
{#snippet rows({ item })}
<Table.Cell>
- <a class="font-medium hover:underline" href="/volumes/{item.Name}/">{item.Name}</a>
+ <a class="font-medium hover:underline" href="/volumes/{item.id}/">{item.Name}</a>
</Table.Cell>
<Table.Cell>
{#if item.InUse}
@@ -229,7 +229,7 @@
Inspect
</DropdownMenu.Item>
<DropdownMenu.Item
- class="focus:text-red-700! text-red-500"
+ variant="destructive"
onclick={() => handleRemoveVolumeConfirm(item.Name)}
>
<Trash2 class="size-4" />