mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 09:15:05 +03:00
fix(web): log out (#5706)
* fix: logging out * fix: websocket --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { get, writable } from 'svelte/store';
|
||||
import type { UserResponseDto } from '@api';
|
||||
|
||||
export const user = writable<UserResponseDto>();
|
||||
export let user = writable<UserResponseDto>();
|
||||
|
||||
export const setUser = (value: UserResponseDto) => {
|
||||
user.set(value);
|
||||
@@ -10,3 +10,7 @@ export const setUser = (value: UserResponseDto) => {
|
||||
export const getSavedUser = () => {
|
||||
return get(user);
|
||||
};
|
||||
|
||||
export const resetSavedUser = () => {
|
||||
user = writable<UserResponseDto>();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user