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.

Polish: Add warning to notificationStore

rcourtman7130e548370f
diff --git a/frontend-modern/src/stores/notifications.ts b/frontend-modern/src/stores/notifications.ts
index db7e7bd6e1..dfd4bc4d44 100644
--- a/frontend-modern/src/stores/notifications.ts
+++ b/frontend-modern/src/stores/notifications.ts
@@ -18,4 +18,8 @@ export const notificationStore = {
info: (message: string, duration: number = DEFAULT_DURATIONS.info) => {
return showToast('info', message, undefined, duration);
},
+
+ warning: (message: string, duration: number = DEFAULT_DURATIONS.info) => {
+ return showToast('warning', message, undefined, duration);
+ },
};