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',
|
||||
password: 'Password',
|
||||
submit: 'Connect',
|
||||
employeeLoginButton: 'Authentik',
|
||||
employeeLoginButton: 'Employee',
|
||||
facebookLoginButton:'Connect with Facebook',
|
||||
tooltipComingSoon: 'Coming soon!',
|
||||
loginOrSeparator: 'OR',
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ export default {
|
|||
email: 'Email',
|
||||
password: 'Mot de passe',
|
||||
submit: 'Connecter',
|
||||
employeeLoginButton: 'Authentik',
|
||||
employeeLoginButton: 'Employé',
|
||||
facebookLoginButton:'Facebook',
|
||||
tooltipComingSoon: 'À venir!',
|
||||
loginOrSeparator: 'OU',
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
const isRemembered = ref(false);
|
||||
|
||||
watch(email, (value) => {
|
||||
isShowingEmployeeLoginButton.value = value.includes('@targoint');
|
||||
isShowingEmployeeLoginButton.value = value.includes('@targ');
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
<q-tooltip anchor="top middle" class="bg-primary">{{$t('loginPage.tooltipComingSoon')}}</q-tooltip>
|
||||
</q-btn>
|
||||
<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>
|
||||
</q-card-section>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user