fix(web): clean dashboard console errors

This commit is contained in:
2026-05-21 22:30:38 +00:00
parent b1a0ce684a
commit befd0efdc0
11 changed files with 57 additions and 22 deletions
+1 -5
View File
@@ -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();