mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-19 21:29:40 +02:00
feat: remove unnecessary UI components if allowPasswordLogin is true (#5484)
This commit is contained in:
parent
af3057951d
commit
8e7e3e21ed
1 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@
|
||||||
:type="inputType"
|
:type="inputType"
|
||||||
@click:append="togglePasswordShow"
|
@click:append="togglePasswordShow"
|
||||||
/>
|
/>
|
||||||
<v-checkbox v-model="form.remember" class="ml-2 mt-n2" :label="$t('user.remember-me')"></v-checkbox>
|
<v-checkbox v-if="allowPasswordLogin" v-model="form.remember" class="ml-2 mt-n2" :label="$t('user.remember-me')"></v-checkbox>
|
||||||
<v-card-actions v-if="allowPasswordLogin" class="justify-center pt-0">
|
<v-card-actions v-if="allowPasswordLogin" class="justify-center pt-0">
|
||||||
<div class="max-button">
|
<div class="max-button">
|
||||||
<v-btn :loading="loggingIn" :disabled="oidcLoggingIn" color="primary" type="submit" large rounded class="rounded-xl" block>
|
<v-btn :loading="loggingIn" :disabled="oidcLoggingIn" color="primary" type="submit" large rounded class="rounded-xl" block>
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
</div>
|
</div>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
||||||
<div v-if="allowOidc" class="d-flex my-4 justify-center align-center" width="80%">
|
<div v-if="allowOidc && allowPasswordLogin" class="d-flex my-4 justify-center align-center" width="80%">
|
||||||
<v-divider class="div-width"/>
|
<v-divider class="div-width"/>
|
||||||
<span
|
<span
|
||||||
class="absolute px-2"
|
class="absolute px-2"
|
||||||
|
@ -97,9 +97,9 @@
|
||||||
</v-form>
|
</v-form>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
<v-card-actions class="d-flex justify-center flex-column flex-sm-row">
|
<v-card-actions class="d-flex justify-center flex-column flex-sm-row">
|
||||||
<v-btn v-if="allowSignup" text to="/register"> {{ $t("user.register") }} </v-btn>
|
<v-btn v-if="allowSignup && allowPasswordLogin" text to="/register"> {{ $t("user.register") }} </v-btn>
|
||||||
<v-btn v-else text disabled> {{ $t("user.invite-only") }} </v-btn>
|
<v-btn v-else text disabled> {{ $t("user.invite-only") }} </v-btn>
|
||||||
<v-btn class="mr-auto" text to="/forgot-password"> {{ $t("user.reset-password") }} </v-btn>
|
<v-btn v-if="allowPasswordLogin" class="mr-auto" text to="/forgot-password"> {{ $t("user.reset-password") }} </v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
||||||
<v-card-text class="d-flex justify-center flex-column flex-sm-row">
|
<v-card-text class="d-flex justify-center flex-column flex-sm-row">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue