feat(account): Implement account and organization management features
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IdpState } from '../idp.state.js';
|
||||
import { IdpState } from '../states/idp.state.js';
|
||||
import * as plugins from '../plugins.js';
|
||||
import * as elements from '../elements/index.js';
|
||||
|
||||
@@ -59,6 +59,11 @@ export class IdpViewcontainer extends DeesElement {
|
||||
throw new Error('View container not found in the rendered DOM.');
|
||||
}
|
||||
|
||||
// check if current element already is instance of viewElement
|
||||
if (this.currentElement instanceof viewElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove the current element if it exists
|
||||
if (this.currentElement) {
|
||||
const currentElement = this.currentElement as any;
|
||||
@@ -103,6 +108,11 @@ export class IdpViewcontainer extends DeesElement {
|
||||
break;
|
||||
case 'finishregistration':
|
||||
await this.loadElement(elements.IdpRegistrationStepper);
|
||||
break;
|
||||
case 'account':
|
||||
console.log('now on /account');
|
||||
await this.loadElement(elements.IdpAccountContent);
|
||||
break;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user