update
This commit is contained in:
@@ -127,6 +127,16 @@ export class OpsDashboard extends DeesElement {
|
||||
this.login(e.detail.data.username, e.detail.data.password);
|
||||
});
|
||||
|
||||
// Handle view changes
|
||||
const appDash = this.shadowRoot.querySelector('dees-simple-appdash');
|
||||
if (appDash) {
|
||||
appDash.addEventListener('viewSwitch', (e: CustomEvent) => {
|
||||
const viewName = e.detail.tabName;
|
||||
console.log('View switched to:', viewName);
|
||||
appstate.uiStatePart.dispatchAction(appstate.setActiveViewAction, viewName.toLowerCase());
|
||||
});
|
||||
}
|
||||
|
||||
// Handle initial state
|
||||
const loginState = appstate.loginStatePart.getState();
|
||||
console.log('Initial login state:', loginState);
|
||||
|
Reference in New Issue
Block a user