refactor: rename TimelineAsset -> Asset

This commit is contained in:
midzelis 2025-10-08 23:54:07 +00:00
parent 53680d9643
commit c6e1170e6d
57 changed files with 260 additions and 281 deletions

View file

@ -6,7 +6,7 @@
} from '$lib/components/shared-components/notification/notification';
import { AssetAction } from '$lib/constants';
import { handleError } from '$lib/utils/handle-error';
import { toTimelineAsset } from '$lib/utils/timeline-util';
import { toAsset } from '$lib/utils/timeline-util';
import { restoreAssets, type AssetResponseDto } from '@immich/sdk';
import { mdiHistory } from '@mdi/js';
import { t } from 'svelte-i18n';
@ -24,7 +24,7 @@
await restoreAssets({ bulkIdsDto: { ids: [asset.id] } });
asset.isTrashed = false;
onAction({ type: AssetAction.RESTORE, asset: toTimelineAsset(asset) });
onAction({ type: AssetAction.RESTORE, asset: toAsset(asset) });
notificationController.show({
type: NotificationType.Info,