mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: Refresh photo after updating featured photo (#21971)
fix: Refresh person photo after setting featured photo Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
a8f683ed15
commit
26e0cb3eb4
5 changed files with 27 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import type { AssetAction } from '$lib/constants';
|
||||
import type { TimelineAsset } from '$lib/managers/timeline-manager/types';
|
||||
import type { AlbumResponseDto, AssetResponseDto, StackResponseDto } from '@immich/sdk';
|
||||
import type { AlbumResponseDto, AssetResponseDto, PersonResponseDto, StackResponseDto } from '@immich/sdk';
|
||||
|
||||
type ActionMap = {
|
||||
[AssetAction.ARCHIVE]: { asset: TimelineAsset };
|
||||
|
|
@ -18,6 +18,7 @@ type ActionMap = {
|
|||
[AssetAction.REMOVE_ASSET_FROM_STACK]: { stack: StackResponseDto | null; asset: AssetResponseDto };
|
||||
[AssetAction.SET_VISIBILITY_LOCKED]: { asset: TimelineAsset };
|
||||
[AssetAction.SET_VISIBILITY_TIMELINE]: { asset: TimelineAsset };
|
||||
[AssetAction.SET_PERSON_FEATURED_PHOTO]: { asset: AssetResponseDto; person: PersonResponseDto };
|
||||
};
|
||||
|
||||
export type Action = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue