ADD: sites and architecture module
This commit is contained in:
@@ -603,8 +603,16 @@ function pollRestore() {
|
||||
function refreshAll() {
|
||||
const btn = document.querySelector('.icon-btn');
|
||||
if (btn) btn.classList.add('spinning');
|
||||
Promise.all([checkServerStatus(), refreshSystemMetrics(), refreshContainerStats(), refreshSidebarNavBadges()])
|
||||
.finally(() => { if (btn) btn.classList.remove('spinning'); });
|
||||
const extras = [];
|
||||
if (typeof window.loadSites === 'function') extras.push(window.loadSites(false));
|
||||
if (typeof window.loadArchitecture === 'function') extras.push(window.loadArchitecture());
|
||||
Promise.all([
|
||||
checkServerStatus(),
|
||||
refreshSystemMetrics(),
|
||||
refreshContainerStats(),
|
||||
refreshSidebarNavBadges(),
|
||||
...extras,
|
||||
]).finally(() => { if (btn) btn.classList.remove('spinning'); });
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
Reference in New Issue
Block a user