mirror of
https://github.com/immich-app/immich.git
synced 2025-11-30 09:09:49 +09:00
feat(web): automatically update user info (#5647)
* use svelte store * fix: websocket error when not authenticated * more routes
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
import { handleError } from '../../utils/handle-error';
|
||||
import SettingInputField, { SettingInputFieldType } from '../admin-page/settings/setting-input-field.svelte';
|
||||
import Button from '../elements/buttons/button.svelte';
|
||||
import { setUser } from '$lib/stores/user.store';
|
||||
|
||||
export let user: UserResponseDto;
|
||||
|
||||
@@ -22,6 +23,7 @@
|
||||
});
|
||||
|
||||
Object.assign(user, data);
|
||||
setUser(data);
|
||||
|
||||
notificationController.show({
|
||||
message: 'Saved profile',
|
||||
|
||||
Reference in New Issue
Block a user