fix(web): clean dashboard console errors
This commit is contained in:
@@ -213,7 +213,6 @@ export class CloudlyDashboard extends DeesElement {
|
||||
const simpleLogin = this.shadowRoot!.querySelector('dees-simple-login') as any;
|
||||
simpleLogin.addEventListener('login', (eventArg: Event) => {
|
||||
const loginEvent = eventArg as CustomEvent;
|
||||
console.log(loginEvent.detail);
|
||||
this.login(loginEvent.detail.data.username, loginEvent.detail.data.password);
|
||||
});
|
||||
|
||||
@@ -244,7 +243,7 @@ export class CloudlyDashboard extends DeesElement {
|
||||
plugins.deesCatalog.DeesContextmenu.openContextMenuWithOptions(eventArg, [
|
||||
{
|
||||
name: 'About',
|
||||
iconName: 'mugHot',
|
||||
iconName: 'lucide:Coffee',
|
||||
action: async () => {
|
||||
await plugins.deesCatalog.DeesModal.createAndShow({
|
||||
heading: 'About',
|
||||
@@ -267,7 +266,6 @@ export class CloudlyDashboard extends DeesElement {
|
||||
// lets deal with initial state
|
||||
const domtools = await this.domtoolsPromise;
|
||||
const loginState = appstate.loginStatePart.getState();
|
||||
console.log(loginState);
|
||||
if (loginState?.identity) {
|
||||
this.identity = loginState.identity;
|
||||
try {
|
||||
@@ -284,7 +282,6 @@ export class CloudlyDashboard extends DeesElement {
|
||||
|
||||
private async login(username: string, password: string) {
|
||||
const domtools = await this.domtoolsPromise;
|
||||
console.log(`attempting to login...`);
|
||||
const simpleLogin = this.shadowRoot!.querySelector('dees-simple-login') as any;
|
||||
const form = simpleLogin.shadowRoot.querySelector('dees-form') as any;
|
||||
form.setStatus('pending', 'Logging in...');
|
||||
@@ -293,7 +290,6 @@ export class CloudlyDashboard extends DeesElement {
|
||||
password,
|
||||
});
|
||||
if (state?.identity) {
|
||||
console.log('got jwt');
|
||||
this.identity = state.identity;
|
||||
form.setStatus('success', 'Logged in!');
|
||||
await simpleLogin.switchToSlottedContent();
|
||||
|
||||
Reference in New Issue
Block a user