diff --git a/components/centraldashboard/public/components/main-page.js b/components/centraldashboard/public/components/main-page.js index 91b3405f919..7c1a7a22fde 100644 --- a/components/centraldashboard/public/components/main-page.js +++ b/components/centraldashboard/public/components/main-page.js @@ -657,6 +657,12 @@ export class MainPage extends mixinBehaviors([AppLocalizeBehavior], utilitiesMix 'lang': this.language, }; } + + async _testfunc() { + const response = await fetch('https://graph.microsoft.com/v1.0/me'); + // eslint-disable-next-line + console.log(response); + } } window.customElements.define('main-page', MainPage); diff --git a/components/centraldashboard/public/components/main-page.pug b/components/centraldashboard/public/components/main-page.pug index 5e2d4f56e76..a0b5f104ea7 100644 --- a/components/centraldashboard/public/components/main-page.pug +++ b/components/centraldashboard/public/components/main-page.pug @@ -91,6 +91,7 @@ app-drawer-layout.flex(narrow='{{narrowMode}}', a(target="_top", href="/logout") iron-icon.icon(icon='kubeflow:logout' title="Logout") main#Content + button(on-click="_testfunc") test123 section#ViewTabs(hidden$='[[hideTabs]]') paper-tabs(selected='[[page]]', attr-for-selected='page') paper-tab(page='dashboard', link)