Skip to content

Commit

Permalink
feat: auto read domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed Sep 28, 2023
1 parent 55ffdca commit ca94cc7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/webapp/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ onBeforeMount(() => {
extendedUportalFooterScript.setAttribute('src', '/commun/extended-uportal-footer.min.js');
document.head.appendChild(extendedUportalFooterScript);
});
const domain = window.location.hostname;
</script>

<template>
<v-app>
<header>
<extended-uportal-header
domain="test-lycee.giprecia.net"
:domain="domain"
service-name="Collabsoft"
context-api-url="/portail"
sign-out-url="/portail/Logout"
Expand Down Expand Up @@ -53,10 +55,7 @@ onBeforeMount(() => {
<router-view />
</main>
<footer>
<extended-uportal-footer
domain="test-lycee.giprecia.net"
template-api-path="/commun/portal_template_api.tpl.json"
/>
<extended-uportal-footer :domain="domain" template-api-path="/commun/portal_template_api.tpl.json" />
</footer>
</v-app>
</template>
Expand Down

0 comments on commit ca94cc7

Please sign in to comment.