fix(deps): Update dependencies to latest versions
This commit is contained in:
		| @@ -33,7 +33,7 @@ declare global { | ||||
|  | ||||
| @customElement('cloudly-dashboard') | ||||
| export class CloudlyDashboard extends DeesElement { | ||||
|   @state() private jwt: string; | ||||
|   @state() private identity: plugins.interfaces.data.IIdentity; | ||||
|   @state() private data: appstate.IDataState = { | ||||
|     secretGroups: [], | ||||
|     secretBundles: [], | ||||
| @@ -169,8 +169,8 @@ export class CloudlyDashboard extends DeesElement { | ||||
|     const domtools = await this.domtoolsPromise; | ||||
|     const loginState = appstate.loginStatePart.getState(); | ||||
|     console.log(loginState); | ||||
|     if (loginState.jwt) { | ||||
|       this.jwt = loginState.jwt; | ||||
|     if (loginState.identity) { | ||||
|       this.identity = loginState.identity; | ||||
|       await simpleLogin.switchToSlottedContent(); | ||||
|       await appstate.dataState.dispatchAction(appstate.getAllDataAction, null); | ||||
|     } | ||||
| @@ -186,9 +186,9 @@ export class CloudlyDashboard extends DeesElement { | ||||
|       username, | ||||
|       password, | ||||
|     }); | ||||
|     if (state.jwt) { | ||||
|     if (state.identity) { | ||||
|       console.log('got jwt'); | ||||
|       this.jwt = state.jwt; | ||||
|       this.identity = state.identity; | ||||
|       form.setStatus('success', 'Logged in!'); | ||||
|       await simpleLogin.switchToSlottedContent(); | ||||
|       await appstate.dataState.dispatchAction(appstate.getAllDataAction, null); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user