frontend: disabled button while processing password reset

This commit is contained in:
Alex
2025-02-28 08:51:35 +01:00
parent 8137f121ed
commit 9c9430ca9c
92 changed files with 37 additions and 17 deletions

View File

@@ -127,7 +127,7 @@
</div>
<div class="button-container">
{#if isUpdating}
<SmallLoader width={30} message={'Aktualisiere...'} />
<SmallLoader width={30} message={$t('loading.updating')} />
{:else}
<button type="button" class="button-dark" on:click={() => dispatch('cancel')}>
{$t('cancel')}</button

View File

@@ -234,7 +234,7 @@
options={userStatusOptions}
readonly={role_id === 0}
/>
{#if localUser.role_id === 8}
{#if role_id === 8}
<InputField
name="user[role_id]"
type="select"
@@ -261,7 +261,7 @@
/>
<InputField
name="user[first_name]"
label={$t('first_name')}
label={$t('user.first_name')}
bind:value={localUser.first_name}
placeholder={$t('placeholder.first_name')}
required={true}
@@ -322,7 +322,7 @@
bind:value={localUser.city}
placeholder={$t('placeholder.city')}
/>
{#if localUser.role_id > 0}
{#if role_id > 0}
<InputField
name="user[notes]"
type="textarea"
@@ -528,7 +528,7 @@
</div>
<div class="button-container">
{#if isUpdating}
<SmallLoader width={30} message={'Aktualisiere...'} />
<SmallLoader width={30} message={$t('loading.updating')} />
{:else}
<button type="button" class="button-dark" on:click={() => dispatch('cancel')}>
{$t('cancel')}</button