v0.1.4-pre.016
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-config-desk/frontend/ts/main.ts
|
||||
// version: 10
|
||||
// version: 11
|
||||
|
||||
import "bootstrap";
|
||||
import ResizeObserver from "resize-observer-polyfill";
|
||||
@@ -146,10 +146,18 @@ async function loadSnapshot(): Promise<void> {
|
||||
frontendTrace("main", "Main shell status replaced", { status: "ready" });
|
||||
}
|
||||
|
||||
function bindRuntimeSnapshotRefresh(): void {
|
||||
window.addEventListener("ksp:logging-runtime-updated", () => {
|
||||
frontendDebug("main", "Application snapshot refresh requested after Logging runtime update");
|
||||
void loadSnapshot();
|
||||
});
|
||||
}
|
||||
|
||||
async function initializeMain(): Promise<void> {
|
||||
const windowLabel = getCurrentWindow().label;
|
||||
frontendInfo("main", "Config Desk main frontend loaded", { windowLabel });
|
||||
bindNavigation();
|
||||
bindRuntimeSnapshotRefresh();
|
||||
initializeDocumentsPanel();
|
||||
initializeProfilesPanel();
|
||||
initializeEnvironmentPanel();
|
||||
|
||||
Reference in New Issue
Block a user