feat(web): event handler component (#23763)

This commit is contained in:
Daniel Dietzler
2025-11-10 17:49:46 +01:00
committed by GitHub
parent 493cde9d55
commit dd393c8346
14 changed files with 58 additions and 23 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ class ThemeManager {
isDark = $derived(this.value === Theme.DARK);
constructor() {
eventManager.on('app.init', () => this.#onAppInit());
eventManager.on('AppInit', () => this.#onAppInit());
}
setSystem(system: boolean) {
@@ -71,7 +71,7 @@ class ThemeManager {
this.#theme.current = theme;
eventManager.emit('theme.change', theme);
eventManager.emit('ThemeChange', theme);
}
}