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:
parent
de2f6e0edb
commit
065cbe46cf
1 changed files with 537 additions and 538 deletions
|
|
@ -13,7 +13,6 @@ import { useNavigate, useLocation } from '@solidjs/router';
|
||||||
import { useWebSocket } from '@/App';
|
import { useWebSocket } from '@/App';
|
||||||
import { showSuccess, showError, showWarning } from '@/utils/toast';
|
import { showSuccess, showError, showWarning } from '@/utils/toast';
|
||||||
import { copyToClipboard } from '@/utils/clipboard';
|
import { copyToClipboard } from '@/utils/clipboard';
|
||||||
import { getPulsePort, getPulseWebSocketUrl } from '@/utils/url';
|
|
||||||
import { logger } from '@/utils/logger';
|
import { logger } from '@/utils/logger';
|
||||||
import {
|
import {
|
||||||
apiFetch,
|
apiFetch,
|
||||||
|
|
@ -1103,7 +1102,7 @@ const Settings: Component<SettingsProps> = (props) => {
|
||||||
if (typeof window === 'undefined') {
|
if (typeof window === 'undefined') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const shouldPoll = currentTab() === 'proxmox' || currentTab() === 'diagnostics';
|
const shouldPoll = currentTab() === 'proxmox';
|
||||||
if (!shouldPoll) {
|
if (!shouldPoll) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue