diff --git a/src/app/_components/InstalledScriptsTab.tsx b/src/app/_components/InstalledScriptsTab.tsx index 4799a31..a10e8cb 100644 --- a/src/app/_components/InstalledScriptsTab.tsx +++ b/src/app/_components/InstalledScriptsTab.tsx @@ -709,6 +709,8 @@ export function InstalledScriptsTab() { return; } + const containerType = script.is_vm ? "VM" : "LXC"; + setConfirmationModal({ isOpen: true, variant: "simple", @@ -718,7 +720,7 @@ export function InstalledScriptsTab() { setControllingScriptId(script.id); setLoadingModal({ isOpen: true, - action: `${action === "start" ? "Starting" : "Stopping"} container ${script.container_id}...`, + action: `${action === "start" ? "Starting" : "Stopping"} ${containerType}...`, }); void controlContainerMutation.mutate({ id: script.id, action }); setConfirmationModal(null); diff --git a/src/app/_components/LoadingModal.tsx b/src/app/_components/LoadingModal.tsx index 9a06d3c..f3c642e 100644 --- a/src/app/_components/LoadingModal.tsx +++ b/src/app/_components/LoadingModal.tsx @@ -16,7 +16,7 @@ interface LoadingModalProps { export function LoadingModal({ isOpen, - action: _action, + action, logs = [], isComplete = false, title, @@ -64,6 +64,11 @@ export function LoadingModal({ )} + {/* Action text - displayed prominently */} + {action && ( +
{action}
+ )} + {/* Static title text */} {title &&{title}
}