Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep update progress modal closable

rcourtman431d2be39280
diff --git a/frontend-modern/src/components/UpdateProgressModal.tsx b/frontend-modern/src/components/UpdateProgressModal.tsx
index c5b17b21c4..5c397c7d44 100644
--- a/frontend-modern/src/components/UpdateProgressModal.tsx
+++ b/frontend-modern/src/components/UpdateProgressModal.tsx
@@ -4,6 +4,7 @@ import { Dialog } from '@/components/shared/Dialog';
import { ProgressBar } from '@/components/shared/ProgressBar';
import { apiFetch } from '@/utils/apiClient';
import { logger } from '@/utils/logger';
+import XIcon from 'lucide-solid/icons/x';
interface UpdateProgressModalProps {
isOpen: boolean;
@@ -374,9 +375,7 @@ export function UpdateProgressModal(props: UpdateProgressModalProps) {
};
const handleClose = () => {
- if (isComplete()) {
- props.onClose();
- }
+ props.onClose();
};
return (
@@ -384,7 +383,7 @@ export function UpdateProgressModal(props: UpdateProgressModalProps) {
isOpen={props.isOpen}
onClose={handleClose}
panelClass="max-w-2xl"
- closeOnBackdrop={isComplete()}
+ closeOnBackdrop={true}
ariaLabel="Updating Pulse"
>
<div class="w-full">
@@ -392,18 +391,23 @@ export function UpdateProgressModal(props: UpdateProgressModalProps) {
<div class="px-6 py-4 border-b border-border">
<div class="flex items-center justify-between">
<h2 class="text-xl font-semibold text-base-content">Updating Pulse</h2>
- <Show when={isComplete()}>
- <button onClick={handleClose} class=" hover:text-base-content" type="button">
- <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- stroke-width="2"
- d="M6 18L18 6M6 6l12 12"
- />
- </svg>
- </button>
- </Show>
+ <button
+ onClick={handleClose}
+ class="text-muted hover:text-base-content"
+ type="button"
+ aria-label={
+ isComplete()
+ ? 'Close update progress'
+ : 'Hide update progress. The update continues server-side.'
+ }
+ title={
+ isComplete()
+ ? 'Close update progress'
+ : 'Hide update progress. GlobalUpdateProgressWatcher keeps tracking the server-side update.'
+ }
+ >
+ <XIcon class="w-5 h-5" />
+ </button>
</div>
</div>