mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-26 07:18:27 +00:00
Polish: Remove unused toast imports and finalize notifications
This commit is contained in:
parent
a6283db5b1
commit
477e3d767e
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue