Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: image dropdown not deleting images
Kyle Mendell12a2e8d56b3a
diff --git a/frontend/src/routes/images/image-table.svelte b/frontend/src/routes/images/image-table.svelteindex cbec49301..7271c7ab9 100644--- a/frontend/src/routes/images/image-table.svelte+++ b/frontend/src/routes/images/image-table.svelte@@ -96,6 +96,33 @@}});+ async function deleteImage(id: string) {+ openConfirmDialog({+ title: 'Remove Image',+ message: 'Are you sure you want to remove this image? This action cannot be undone.',+ confirm: {+ label: 'Remove',+ destructive: true,+ action: async () => {+ isLoading.removing = true;++ const result = await tryCatch(environmentAPI.deleteImage(id));+ handleApiResultWithCallbacks({+ result,+ message: 'Failed to remove image',+ setLoadingState: () => {},+ onSuccess: async () => {+ toast.success('Image removed successfully');+ await onImagesChanged();+ }+ });++ isLoading.removing = false;+ }+ }+ });+ }+async function handleDeleteSelected() {if (selectedIds.length === 0) return;@@ -335,7 +362,7 @@<DropdownMenu.Separator /><DropdownMenu.Itemvariant="destructive"- onclick={() => handleDeleteSelected()}+ onclick={() => deleteImage(item.Id)}disabled={isLoading.removing}>{#if isLoading.removing}