mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
fix
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
<FieldGroup class="gap-3">
|
<FieldGroup class="gap-3">
|
||||||
<VeeField v-slot="{ field, errors }" name="username">
|
<VeeField v-slot="{ field, errors }" name="username">
|
||||||
<Field :data-invalid="!!errors.length">
|
<Field :data-invalid="!!errors.length">
|
||||||
<FieldLabel for="login-form-username">
|
<FieldLabel for="login-form-username" class="text-foreground">
|
||||||
{{ t('view.login.field.username') }}
|
{{ t('view.login.field.username') }}
|
||||||
</FieldLabel>
|
</FieldLabel>
|
||||||
<FieldContent>
|
<FieldContent>
|
||||||
@@ -45,16 +45,15 @@
|
|||||||
name="username"
|
name="username"
|
||||||
:placeholder="t('view.login.field.username')"
|
:placeholder="t('view.login.field.username')"
|
||||||
:aria-invalid="!!errors.length"
|
:aria-invalid="!!errors.length"
|
||||||
clearable
|
|
||||||
@update:modelValue="field.onChange"
|
@update:modelValue="field.onChange"
|
||||||
@blur="field.onBlur" />
|
@blur="field.onBlur" />
|
||||||
<FieldError v-if="errors.length" :errors="errors" />
|
<FieldError v-if="errors.length" :errors="errors" />
|
||||||
</FieldContent>
|
</FieldContent>
|
||||||
</Field>
|
</Field>
|
||||||
</VeeField>
|
</VeeField>
|
||||||
<VeeField v-slot="{ field, errors }" name="password">
|
<VeeField v-slot="{ field, errors, handleChange }" name="password">
|
||||||
<Field :data-invalid="!!errors.length">
|
<Field :data-invalid="!!errors.length">
|
||||||
<FieldLabel for="login-form-password">
|
<FieldLabel for="login-form-password" class="text-foreground">
|
||||||
{{ t('view.login.field.password') }}
|
{{ t('view.login.field.password') }}
|
||||||
</FieldLabel>
|
</FieldLabel>
|
||||||
<FieldContent>
|
<FieldContent>
|
||||||
@@ -66,8 +65,8 @@
|
|||||||
name="password"
|
name="password"
|
||||||
:placeholder="t('view.login.field.password')"
|
:placeholder="t('view.login.field.password')"
|
||||||
:aria-invalid="!!errors.length"
|
:aria-invalid="!!errors.length"
|
||||||
clearable
|
|
||||||
show-password
|
show-password
|
||||||
|
@keydown.delete="handleChange('', false)"
|
||||||
@update:modelValue="field.onChange"
|
@update:modelValue="field.onChange"
|
||||||
@blur="field.onBlur" />
|
@blur="field.onBlur" />
|
||||||
<FieldError v-if="errors.length" :errors="errors" />
|
<FieldError v-if="errors.length" :errors="errors" />
|
||||||
@@ -240,7 +239,11 @@
|
|||||||
* @param user
|
* @param user
|
||||||
*/
|
*/
|
||||||
async function clickSavedLogin(user) {
|
async function clickSavedLogin(user) {
|
||||||
await relogin(user);
|
try {
|
||||||
|
await relogin(user);
|
||||||
|
} catch {
|
||||||
|
// relogin already handles user-facing error display (toast)
|
||||||
|
}
|
||||||
await updateSavedCredentials();
|
await updateSavedCredentials();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user