Skip to content

Commit

Permalink
test graph function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Marcotte committed Feb 16, 2024
1 parent 1d2f56c commit af93626
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/centraldashboard/public/components/main-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af93626

Please sign in to comment.