From 477e3d767e33f1eabfa0cba540bf23fa2d5faaf8 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 23 Dec 2025 12:12:57 +0000 Subject: [PATCH] Polish: Remove unused toast imports and finalize notifications --- frontend-modern/src/components/Settings/NodeModal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend-modern/src/components/Settings/NodeModal.tsx b/frontend-modern/src/components/Settings/NodeModal.tsx index 1ca74988f..e07b1c8bf 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 = (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 = (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; }