mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: web editor improvements (#25169)
This commit is contained in:
@@ -127,17 +127,14 @@
|
|||||||
} = $derived(getAssetActions($t, asset));
|
} = $derived(getAssetActions($t, asset));
|
||||||
const sharedLink = getSharedLink();
|
const sharedLink = getSharedLink();
|
||||||
|
|
||||||
// TODO: Enable when edits are ready for release
|
const editorDisabled = $derived(
|
||||||
let showEditorButton = $derived(
|
!isOwner ||
|
||||||
isOwner &&
|
asset.type !== AssetTypeEnum.Image ||
|
||||||
asset.type === AssetTypeEnum.Image &&
|
asset.livePhotoVideoId ||
|
||||||
!(
|
(asset.exifInfo?.projectionType === ProjectionType.EQUIRECTANGULAR &&
|
||||||
asset.exifInfo?.projectionType === ProjectionType.EQUIRECTANGULAR ||
|
asset.originalPath.toLowerCase().endsWith('.insp')) ||
|
||||||
(asset.originalPath && asset.originalPath.toLowerCase().endsWith('.insp'))
|
asset.originalPath.toLowerCase().endsWith('.gif') ||
|
||||||
) &&
|
asset.originalPath.toLowerCase().endsWith('.svg'),
|
||||||
!(asset.originalPath && asset.originalPath.toLowerCase().endsWith('.gif')) &&
|
|
||||||
!(asset.originalPath && asset.originalPath.toLowerCase().endsWith('.svg')) &&
|
|
||||||
!asset.livePhotoVideoId,
|
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -191,7 +188,7 @@
|
|||||||
<RatingAction {asset} {onAction} />
|
<RatingAction {asset} {onAction} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if showEditorButton}
|
{#if !editorDisabled}
|
||||||
<EditAction onAction={onEdit} />
|
<EditAction onAction={onEdit} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
/>
|
/>
|
||||||
<p class="text-lg text-immich-fg dark:text-immich-dark-fg capitalize">{$t('editor')}</p>
|
<p class="text-lg text-immich-fg dark:text-immich-dark-fg capitalize">{$t('editor')}</p>
|
||||||
</HStack>
|
</HStack>
|
||||||
<Button shape="round" size="small" onclick={applyEdits}>{$t('save')}</Button>
|
<Button shape="round" size="small" onclick={applyEdits} loading={editManager.isApplyingEdits}>{$t('save')}</Button>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|||||||
Reference in New Issue
Block a user