Skip to content

Commit

Permalink
Test console
Browse files Browse the repository at this point in the history
  • Loading branch information
wg102 committed Mar 26, 2024
1 parent fdc5402 commit 62eb42e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/centraldashboard/public/components/landing-page.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import '@polymer/iron-ajax/iron-ajax.js';
import '@polymer/iron-icons/iron-icons.js';
import '@polymer/iron-media-query/iron-media-query.js';
Expand Down Expand Up @@ -53,6 +54,7 @@ export class LandingPage extends mixinBehaviors([AppLocalizeBehavior], utilities
}

_onUserDetails() {
console.log(this.userDetails);
this.emailAddress = this.userDetails;
this.generateNamespace(this.userDetails);
}
Expand Down
2 changes: 2 additions & 0 deletions components/centraldashboard/public/components/main-page.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import '@polymer/app-layout/app-drawer/app-drawer.js';
import '@polymer/app-layout/app-drawer-layout/app-drawer-layout.js';
import '@polymer/app-layout/app-header/app-header.js';
Expand Down Expand Up @@ -534,6 +535,7 @@ export class MainPage extends mixinBehaviors([AppLocalizeBehavior], utilitiesMix
const {
platform, user, namespaces, isClusterAdmin,
} = responseEvent.detail.response;
console.log(responseEvent.detail.response);
Object.assign(this, {user, isClusterAdmin});
const ownerRoleNamespaces = [];
const otherRoleNamespaces = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ app-drawer-layout.flex(narrow='{{narrowMode}}',
paper-toast#welcomeUser(duration=5000) Welcome, [[_extractLdap(user)]]!
paper-toast#ErrorToast(duration=0, opened='[[!empty(errorText)]]', on-click='closeError') {{localize(errorText)}}
paper-icon-button(icon='close')
template(is='dom-if', if='[[registrationFlow]]')
template(is='dom-if', if='[[!registrationFlow]]')
landing-page(user-details='[[user]]' on-flowcomplete='resyncApp', language='[[language]]', resources='[[resources]]')

0 comments on commit 62eb42e

Please sign in to comment.