Merge branch 'main' into restray_i18n

This commit is contained in:
Restray
2022-04-04 12:29:20 +02:00
committed by GitHub
52 changed files with 1188 additions and 258 deletions

View File

@@ -20,6 +20,9 @@
emailEl.focus();
});
async function handleSubmit() {
// Prevent double submission
if (loading) return;
if (password !== passwordCheck) {
return errorNotification($t('forms.passwords_not_match'));
}
@@ -89,8 +92,13 @@
/>
<div class="flex space-x-2 h-8 items-center justify-center pt-8">
<button type="submit" class="hover:bg-coollabs-100 text-white bg-coollabs"
>{$t('register.register')}</button
<button
type="submit"
class="hover:bg-coollabs-100 text-white"
disabled={loading}
class:bg-transparent={loading}
class:text-stone-600={loading}
class:bg-coollabs={!loading}>{loading ? $t('register.registering') : $t('register.register')}</button
>
</div>
</form>