mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
parent
40854f358c
commit
5e6ac87eaf
23 changed files with 30 additions and 28 deletions
|
|
@ -81,7 +81,7 @@
|
|||
const mergedPerson = await getPerson({ id: person.id });
|
||||
const count = results.filter(({ success }) => success).length;
|
||||
notificationController.show({
|
||||
message: $t('merged_people_count', { values: { count: count } }),
|
||||
message: $t('merged_people_count', { values: { count } }),
|
||||
type: NotificationType.Info,
|
||||
});
|
||||
dispatch('merge', mergedPerson);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
const count = results.filter(({ success }) => success).length;
|
||||
notificationController.show({
|
||||
type: NotificationType.Info,
|
||||
message: $t('assets_removed_count', { values: { count: count } }),
|
||||
message: $t('assets_removed_count', { values: { count } }),
|
||||
});
|
||||
|
||||
clearSelect();
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
notificationController.show({
|
||||
type: NotificationType.Info,
|
||||
message: $t('assets_removed_count', { values: { count: count } }),
|
||||
message: $t('assets_removed_count', { values: { count } }),
|
||||
});
|
||||
|
||||
clearSelect();
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
if (!heightPending) {
|
||||
const height = element.getBoundingClientRect().height;
|
||||
if (height !== 0) {
|
||||
$assetStore.updateBucket(bucket.bucketDate, { height: height, measured: true });
|
||||
$assetStore.updateBucket(bucket.bucketDate, { height, measured: true });
|
||||
}
|
||||
|
||||
onMeasured();
|
||||
|
|
@ -65,9 +65,7 @@
|
|||
<section id="measure-asset-group-by-date" class="flex flex-wrap gap-x-12" use:measure>
|
||||
{#each bucket.dateGroups as dateGroup}
|
||||
<div id="date-group" data-date-group={dateGroup.date}>
|
||||
<div
|
||||
use:resizeObserver={({ height }) => $assetStore.updateBucketDateGroup(bucket, dateGroup, { height: height })}
|
||||
>
|
||||
<div use:resizeObserver={({ height }) => $assetStore.updateBucketDateGroup(bucket, dateGroup, { height })}>
|
||||
<div
|
||||
class="flex z-[100] sticky top-[-1px] pt-7 pb-5 h-6 place-items-center text-xs font-medium text-immich-fg bg-immich-bg dark:bg-immich-dark-bg dark:text-immich-dark-fg md:text-sm"
|
||||
style:width={dateGroup.geometry.containerWidth + 'px'}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ describe('ShareCover component', () => {
|
|||
it.skip('renders fallback image when asset is not resized', () => {
|
||||
const link = sharedLinkFactory.build({ assets: [assetFactory.build()] });
|
||||
render(ShareCover, {
|
||||
link: link,
|
||||
link,
|
||||
preload: false,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ class IntersectionTask {
|
|||
this.internalTaskManager.queueScrollSensitiveTask({
|
||||
task,
|
||||
cleanup,
|
||||
componentId: componentId,
|
||||
componentId,
|
||||
priority: this.priority,
|
||||
taskId: this.intersectedKey,
|
||||
});
|
||||
|
|
@ -367,7 +367,7 @@ class IntersectionTask {
|
|||
this.internalTaskManager.queueSeparateTask({
|
||||
task,
|
||||
cleanup,
|
||||
componentId: componentId,
|
||||
componentId,
|
||||
taskId: this.separatedKey,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export const addAssetsToAlbum = async (albumId: string, assetIds: string[], show
|
|||
timeout: 5000,
|
||||
message:
|
||||
count > 0
|
||||
? $t('assets_added_to_album_count', { values: { count: count } })
|
||||
? $t('assets_added_to_album_count', { values: { count } })
|
||||
: $t('assets_were_part_of_album_count', { values: { count: assetIds.length } }),
|
||||
button: {
|
||||
text: $t('view_album'),
|
||||
|
|
@ -264,7 +264,7 @@ export const downloadFile = async (asset: AssetResponseDto) => {
|
|||
|
||||
downloadBlob(data, filename);
|
||||
} catch (error) {
|
||||
handleError(error, $t('errors.error_downloading', { values: { filename: filename } }));
|
||||
handleError(error, $t('errors.error_downloading', { values: { filename } }));
|
||||
downloadManager.clear(downloadKey);
|
||||
} finally {
|
||||
setTimeout(() => downloadManager.clear(downloadKey), 5000);
|
||||
|
|
|
|||
|
|
@ -28,5 +28,5 @@ export const searchNameLocal = (
|
|||
};
|
||||
|
||||
export const getPersonNameWithHiddenValue = derived(t, ($t) => {
|
||||
return (name: string, isHidden: boolean) => $t('person_hidden', { values: { name: name, hidden: isHidden } });
|
||||
return (name: string, isHidden: boolean) => $t('person_hidden', { values: { name, hidden: isHidden } });
|
||||
});
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ export function splitBucketIntoDateGroups(bucket: AssetBucket, locale: string |
|
|||
heightActual: false,
|
||||
intersecting: false,
|
||||
geometry: emptyGeometry(),
|
||||
bucket: bucket,
|
||||
bucket,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@
|
|||
const count = results.filter(({ success }) => success).length;
|
||||
notificationController.show({
|
||||
type: NotificationType.Info,
|
||||
message: $t('assets_added_count', { values: { count: count } }),
|
||||
message: $t('assets_added_count', { values: { count } }),
|
||||
});
|
||||
|
||||
await refreshAlbum();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue