mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor: use immich/ui button component in user settings (#16836)
This commit is contained in:
parent
77fad86b82
commit
72a7be26c0
11 changed files with 57 additions and 54 deletions
|
|
@ -3,14 +3,13 @@
|
|||
notificationController,
|
||||
NotificationType,
|
||||
} from '$lib/components/shared-components/notification/notification';
|
||||
import { changePassword } from '@immich/sdk';
|
||||
import { fade } from 'svelte/transition';
|
||||
|
||||
import Button from '$lib/components/elements/buttons/button.svelte';
|
||||
import type { HttpError } from '@sveltejs/kit';
|
||||
import SettingInputField from '$lib/components/shared-components/settings/setting-input-field.svelte';
|
||||
import { t } from 'svelte-i18n';
|
||||
import { SettingInputFieldType } from '$lib/constants';
|
||||
import { changePassword } from '@immich/sdk';
|
||||
import { Button } from '@immich/ui';
|
||||
import type { HttpError } from '@sveltejs/kit';
|
||||
import { t } from 'svelte-i18n';
|
||||
import { fade } from 'svelte/transition';
|
||||
|
||||
let password = $state('');
|
||||
let newPassword = $state('');
|
||||
|
|
@ -72,8 +71,9 @@
|
|||
|
||||
<div class="flex justify-end">
|
||||
<Button
|
||||
shape="round"
|
||||
type="submit"
|
||||
size="sm"
|
||||
size="small"
|
||||
disabled={!(password && newPassword && newPassword === confirmPassword)}
|
||||
onclick={() => handleChangePassword()}>{$t('save')}</Button
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue