mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-10-29 20:24:53 +01:00
fix(invites): more responsive validation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user