Fix settings page showing all tabs on first load
Non-active tab groups were visible during async data loading because switchSettingsTab ran after the awaits. Moved it before async calls and added CSS defaults to hide non-connections groups, preventing any flash.
This commit is contained in:
parent
efe8280e23
commit
db7714c4db
1 changed files with 1 additions and 1 deletions
|
|
@ -3040,11 +3040,11 @@ async function loadPageData(pageId) {
|
||||||
break;
|
break;
|
||||||
case 'settings':
|
case 'settings':
|
||||||
initializeSettings();
|
initializeSettings();
|
||||||
|
switchSettingsTab('connections');
|
||||||
await loadSettingsData();
|
await loadSettingsData();
|
||||||
await loadQualityProfile();
|
await loadQualityProfile();
|
||||||
loadApiKeys();
|
loadApiKeys();
|
||||||
loadBlacklistCount();
|
loadBlacklistCount();
|
||||||
switchSettingsTab('connections');
|
|
||||||
break;
|
break;
|
||||||
case 'stats':
|
case 'stats':
|
||||||
initializeStatsPage();
|
initializeStatsPage();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue