feat(account): Implement account and organization management features

This commit is contained in:
2024-10-06 23:56:03 +02:00
parent 2c0e771da2
commit f7600ca83f
26 changed files with 1036 additions and 240 deletions
+11 -1
View File
@@ -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;
}
});
}