feat(app): wire dashboard administration flows
This commit is contained in:
@@ -102,19 +102,20 @@ export class IdpWelcome extends DeesElement {
|
||||
<p class="greeting">Signed in as <strong>${data.user.data.name}</strong></p>
|
||||
</div>
|
||||
<div class="button-group">
|
||||
<dees-button
|
||||
<idp-button
|
||||
variant="accent"
|
||||
@click=${async () => {
|
||||
const idpState = await IdpState.getSingletonInstance();
|
||||
idpState.domtools.router.pushUrl('/account');
|
||||
idpState.domtools.router.pushUrl('/dash/overview');
|
||||
}}
|
||||
>Manage your account</dees-button>
|
||||
<dees-button
|
||||
type="secondary"
|
||||
>Open dashboard</idp-button>
|
||||
<idp-button
|
||||
variant="outline"
|
||||
@click=${async () => {
|
||||
const idpState = await IdpState.getSingletonInstance();
|
||||
idpState.domtools.router.pushUrl('/logout');
|
||||
}}
|
||||
>Sign out</dees-button>
|
||||
>Sign out</idp-button>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
@@ -124,29 +125,30 @@ export class IdpWelcome extends DeesElement {
|
||||
<p>Sign in to your account or create a new one</p>
|
||||
</div>
|
||||
<div class="button-group">
|
||||
<dees-button
|
||||
<idp-button
|
||||
variant="accent"
|
||||
@click=${async () => {
|
||||
const idpState = await IdpState.getSingletonInstance();
|
||||
idpState.domtools.router.pushUrl('/login');
|
||||
}}
|
||||
>Sign In</dees-button>
|
||||
<dees-button
|
||||
type="secondary"
|
||||
>Sign In</idp-button>
|
||||
<idp-button
|
||||
variant="outline"
|
||||
@click=${async () => {
|
||||
const idpState = await IdpState.getSingletonInstance();
|
||||
idpState.domtools.router.pushUrl('/register');
|
||||
}}
|
||||
>Create Account</dees-button>
|
||||
>Create Account</idp-button>
|
||||
</div>
|
||||
`;
|
||||
})}
|
||||
<div class="secondary-actions">
|
||||
<dees-button
|
||||
type="discreet"
|
||||
<idp-button
|
||||
variant="ghost"
|
||||
@click=${() => {
|
||||
window.open('https://code.foss.global/idp.global/idp.global', '_blank');
|
||||
window.open('https://code.foss.global/idp.global/app', '_blank');
|
||||
}}
|
||||
>View Source Code</dees-button>
|
||||
>View Source Code</idp-button>
|
||||
</div>
|
||||
</idp-centercontainer>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user