chore(settings): Clean up unused imports and optimize polling

- Removed unused getPulsePort/getPulseWebSocketUrl imports
- Optimized polling to only run on proxmox tab (DiagnosticsPanel handles its own fetching)
- Remaining lint warnings are for legacy code that may need future refactoring
This commit is contained in:
rcourtman 2025-12-13 07:59:52 +00:00
parent de2f6e0edb
commit 065cbe46cf

View file

@ -13,7 +13,6 @@ import { useNavigate, useLocation } from '@solidjs/router';
import { useWebSocket } from '@/App';
import { showSuccess, showError, showWarning } from '@/utils/toast';
import { copyToClipboard } from '@/utils/clipboard';
import { getPulsePort, getPulseWebSocketUrl } from '@/utils/url';
import { logger } from '@/utils/logger';
import {
apiFetch,
@ -1103,7 +1102,7 @@ const Settings: Component<SettingsProps> = (props) => {
if (typeof window === 'undefined') {
return;
}
const shouldPoll = currentTab() === 'proxmox' || currentTab() === 'diagnostics';
const shouldPoll = currentTab() === 'proxmox';
if (!shouldPoll) {
return;
}