mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-13 21:51:41 -07:00
PLG: Add 'No Data' message for empty plugin tabs and enhance event data loading checks #1607
This commit is contained in:
@@ -513,6 +513,12 @@ function generateTabs() {
|
||||
}
|
||||
});
|
||||
|
||||
if (visiblePlugins.length === 0) {
|
||||
$('#tabs-content-location').html(`<p class="text-muted" style="padding: 15px;">${getString('Gen_No_Data')}</p>`);
|
||||
hideSpinner();
|
||||
return;
|
||||
}
|
||||
|
||||
// Auto-select tab from ?tab= URL param or cache (scoped to plugin nav only)
|
||||
initializeTabsShared({
|
||||
cacheKey: 'activePluginsTab',
|
||||
|
||||
Reference in New Issue
Block a user