Skip to content
Snippets Groups Projects
Commit 5e5cc86a authored by Mo Hadizadeh's avatar Mo Hadizadeh :speech_balloon:
Browse files

add helmholtz aai config

parent 5b9d5694
No related branches found
No related tags found
No related merge requests found
......@@ -66,23 +66,25 @@
>
<LoginIcon aria-hidden="true" :class="iconSizeClasses" />
<span>Log in</span>
</Button>
</Button>
</div>
<!-- Login Helmholtz AAI button -->
<div>
<Button
class="justify-center w-full gap-2"
:href="`${baseurl}/api/helmholtz-aai/login/`"
v-slot="{ iconSizeClasses }"
>
<img alt="Helmholtz AAI" title="Sign in with Helmholtz AAI" class="gl-button-icon js-lazy-loaded" src="https://codebase.helmholtz.cloud/images/hifis-icon.svg" loading="lazy" data-qa_selector="js_lazy_loaded_content" width="25" height="25">
<span class="gl-button-text">
Login via Helmholtz AAI
</span>
</Button>
</div>
<template v-if="helmholtz_aai_status === true">
<div>
<Button
class="justify-center w-full gap-2"
:href="`${baseurl}/api/helmholtz-aai/login/`"
v-slot="{ iconSizeClasses }"
>
<img alt="Helmholtz AAI" title="Sign in with Helmholtz AAI" class="gl-button-icon js-lazy-loaded" src="https://codebase.helmholtz.cloud/images/hifis-icon.svg" loading="lazy" data-qa_selector="js_lazy_loaded_content" width="25" height="25">
<span class="gl-button-text">
Login via Helmholtz AAI
</span>
</Button>
</div>
</template>
<!-- Register link -->
<p class="text-sm text-gray-600 dark:text-gray-400">
......@@ -115,6 +117,8 @@ import Input from '@/components/Input.vue'
import Checkbox from '@/components/Checkbox.vue'
import Button from '@/components/Button.vue'
import { useRoute } from 'vue-router';
import { helmholtz_aai_activation } from '@/config.js'
export default {
......@@ -123,11 +127,13 @@ export default {
const userStore = useUserStore()
const route = useRoute();
const message = ref(route.params.message);
const helmholtz_aai_status = helmholtz_aai_activation
console.log('message', message)
return {
userStore,
message
message,
helmholtz_aai_status
}
},
components: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment