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: Remove unused toast imports and finalize notifications

rcourtman477e3d767e33
diff --git a/frontend-modern/src/components/Settings/NodeModal.tsx b/frontend-modern/src/components/Settings/NodeModal.tsx
index 1ca74988f5..e07b1c8bfa 100644
--- a/frontend-modern/src/components/Settings/NodeModal.tsx
+++ b/frontend-modern/src/components/Settings/NodeModal.tsx
@@ -3,7 +3,7 @@ import { Portal } from 'solid-js/web';
import type { NodeConfig } from '@/types/nodes';
import type { SecurityStatus } from '@/types/config';
import { copyToClipboard } from '@/utils/clipboard';
-import { showSuccess, showError } from '@/utils/toast';
+import { copyToClipboard } from '@/utils/clipboard';
import { notificationStore } from '@/stores/notifications';
import { getPulseBaseUrl } from '@/utils/url';
import { NodesAPI } from '@/api/nodes';
@@ -809,7 +809,7 @@ export const NodeModal: Component<NodeModalProps> = (props) => {
}
} catch (error) {
logger.error('[Agent Install] Error:', error);
- showError('Failed to generate install command');
+ notificationStore.error('Failed to generate install command');
} finally {
setLoadingAgentCommand(false);
}
@@ -1444,7 +1444,7 @@ export const NodeModal: Component<NodeModalProps> = (props) => {
try {
// Check if host is populated
if (!formData().host || formData().host.trim() === '') {
- showError('Please enter the Host URL first');
+ notificationStore.error('Please enter the Host URL first');
return;
}