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: Fix remaining window.showToast in UnifiedAgents loop

rcourtmanc7870da57fb7
diff --git a/frontend-modern/src/components/Settings/UnifiedAgents.tsx b/frontend-modern/src/components/Settings/UnifiedAgents.tsx
index f7c592b8b0..cce0c06c05 100644
--- a/frontend-modern/src/components/Settings/UnifiedAgents.tsx
+++ b/frontend-modern/src/components/Settings/UnifiedAgents.tsx
@@ -606,8 +606,10 @@ export const UnifiedAgents: Component = () => {
type="button"
onClick={async () => {
const success = await copyToClipboard(copyCommand());
- if (typeof window !== 'undefined' && window.showToast) {
- window.showToast(success ? 'success' : 'error', success ? 'Copied!' : 'Failed to copy');
+ if (success) {
+ notificationStore.success('Copied to clipboard');
+ } else {
+ notificationStore.error('Failed to copy');
}
}}
class="absolute top-2 right-2 p-1.5 text-gray-400 hover:text-gray-200 bg-gray-700 rounded-md transition-colors"