mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 05:38:46 +00:00
fix(invites): more responsive validation
This commit is contained in:
parent
239f78674b
commit
cc13c4f28e
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
|||
type='text',
|
||||
:placeholder='$t("emailOrUsernameInvite")',
|
||||
v-model='invite.text',
|
||||
v-on:change='checkInviteList',
|
||||
v-on:keyup='checkInviteList',
|
||||
:class='{"input-valid": invite.valid, "is-invalid input-invalid": invite.valid === false}',
|
||||
)
|
||||
.input-error.text-center.mt-2(v-if="invite.error") {{ invite.error }}
|
||||
|
|
@ -147,7 +147,7 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
}, 500),
|
||||
}, 250),
|
||||
fillErrors (index, res) {
|
||||
if (!res || res.status === 200) {
|
||||
this.invites[index].error = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue