fix(login): change authentik button to employee login button (abstracted), shorten work email detection
This commit is contained in:
parent
07058d1ae7
commit
6006c3fb42
|
|
@ -43,7 +43,7 @@ export default {
|
||||||
email: 'Email',
|
email: 'Email',
|
||||||
password: 'Password',
|
password: 'Password',
|
||||||
submit: 'Connect',
|
submit: 'Connect',
|
||||||
employeeLoginButton: 'Authentik',
|
employeeLoginButton: 'Employee',
|
||||||
facebookLoginButton:'Connect with Facebook',
|
facebookLoginButton:'Connect with Facebook',
|
||||||
tooltipComingSoon: 'Coming soon!',
|
tooltipComingSoon: 'Coming soon!',
|
||||||
loginOrSeparator: 'OR',
|
loginOrSeparator: 'OR',
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ export default {
|
||||||
email: 'Email',
|
email: 'Email',
|
||||||
password: 'Mot de passe',
|
password: 'Mot de passe',
|
||||||
submit: 'Connecter',
|
submit: 'Connecter',
|
||||||
employeeLoginButton: 'Authentik',
|
employeeLoginButton: 'Employé',
|
||||||
facebookLoginButton:'Facebook',
|
facebookLoginButton:'Facebook',
|
||||||
tooltipComingSoon: 'À venir!',
|
tooltipComingSoon: 'À venir!',
|
||||||
loginOrSeparator: 'OU',
|
loginOrSeparator: 'OU',
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
const isRemembered = ref(false);
|
const isRemembered = ref(false);
|
||||||
|
|
||||||
watch(email, (value) => {
|
watch(email, (value) => {
|
||||||
isShowingEmployeeLoginButton.value = value.includes('@targoint');
|
isShowingEmployeeLoginButton.value = value.includes('@targ');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
<q-tooltip anchor="top middle" class="bg-primary">{{$t('loginPage.tooltipComingSoon')}}</q-tooltip>
|
<q-tooltip anchor="top middle" class="bg-primary">{{$t('loginPage.tooltipComingSoon')}}</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<transition appear enter-active-class="animated zoomIn" leave-active-class="animated zoomOut">
|
<transition appear enter-active-class="animated zoomIn" leave-active-class="animated zoomOut">
|
||||||
<q-btn rounded push color="authentik-orange" v-if="isShowingEmployeeLoginButton" @click="login" :label="$t('loginPage.employeeLoginButton')" class="full-width row" icon="img:src/assets/authentik-icon.svg" />
|
<q-btn rounded push color="primary" v-if="isShowingEmployeeLoginButton" @click="login" :label="$t('loginPage.employeeLoginButton')" class="full-width row" icon="img:src/assets/logo-targo-simple.svg" />
|
||||||
</transition>
|
</transition>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user