Compare commits
2 Commits
6be0db57da
...
540b0518c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
540b0518c5 | ||
|
|
3064328aa8 |
@ -25,6 +25,13 @@ if (typeof window.ConfigManager === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
// The sidebar and page headers read window.configData. Load it up front so
|
||||
// populateSidebar() has categories on a cold admin visit (e.g. straight
|
||||
// from the dashboard); otherwise the overview/tools branches below render
|
||||
// an empty sidebar until something else populates configData. Cached after
|
||||
// the first call, so the config-category path below is a cache hit.
|
||||
try { await this.core.loadConfig(category); } catch (e) {}
|
||||
|
||||
// Overview is the Admin landing — an ops/health board, not a config form.
|
||||
if (category === 'overview') {
|
||||
try { this.sidebar.populateSidebar(); } catch (e) {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user