mirror of
https://github.com/immich-app/immich.git
synced 2026-03-26 20:00:44 +03:00
fix(web): disable send button (#27051)
fix(web): disable button while sending
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
import { user } from '$lib/stores/user.store';
|
import { user } from '$lib/stores/user.store';
|
||||||
import { handleError } from '$lib/utils/handle-error';
|
import { handleError } from '$lib/utils/handle-error';
|
||||||
import { sendTestEmailAdmin } from '@immich/sdk';
|
import { sendTestEmailAdmin } from '@immich/sdk';
|
||||||
import { Button, LoadingSpinner, toastManager } from '@immich/ui';
|
import { Button, toastManager } from '@immich/ui';
|
||||||
import { t } from 'svelte-i18n';
|
import { t } from 'svelte-i18n';
|
||||||
import { fade } from 'svelte/transition';
|
import { fade } from 'svelte/transition';
|
||||||
|
|
||||||
@@ -142,6 +142,7 @@
|
|||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
shape="round"
|
shape="round"
|
||||||
|
loading={isSending}
|
||||||
disabled={!configToEdit.notifications.smtp.enabled}
|
disabled={!configToEdit.notifications.smtp.enabled}
|
||||||
onclick={handleSendTestEmail}
|
onclick={handleSendTestEmail}
|
||||||
>
|
>
|
||||||
@@ -151,9 +152,6 @@
|
|||||||
{$t('admin.notification_email_sent_test_email_button')}
|
{$t('admin.notification_email_sent_test_email_button')}
|
||||||
{/if}
|
{/if}
|
||||||
</Button>
|
</Button>
|
||||||
{#if isSending}
|
|
||||||
<LoadingSpinner />
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</SettingAccordion>
|
</SettingAccordion>
|
||||||
|
|||||||
Reference in New Issue
Block a user