mirror of
https://github.com/immich-app/immich.git
synced 2025-03-11 02:23:09 -05:00
fix: cli import (#4224)
* fix: allow import of assets * fix: allow deletion of read only assets
This commit is contained in:
parent
54bea23485
commit
9676412875
2 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@ export class ImportAssetDto extends CreateAssetBase {
|
||||||
isReadOnly?: boolean = true;
|
isReadOnly?: boolean = true;
|
||||||
|
|
||||||
@ValidateUUID()
|
@ValidateUUID()
|
||||||
|
@Optional()
|
||||||
libraryId?: string;
|
libraryId?: string;
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if isOwner}
|
{#if isOwner}
|
||||||
{#if !asset.isReadOnly && !asset.isExternal}
|
{#if !asset.isReadOnly || !asset.isExternal}
|
||||||
<CircleIconButton isOpacity={true} logo={DeleteOutline} on:click={() => dispatch('delete')} title="Delete" />
|
<CircleIconButton isOpacity={true} logo={DeleteOutline} on:click={() => dispatch('delete')} title="Delete" />
|
||||||
{/if}
|
{/if}
|
||||||
<div use:clickOutside on:outclick={() => (isShowAssetOptions = false)}>
|
<div use:clickOutside on:outclick={() => (isShowAssetOptions = false)}>
|
||||||
|
|
Loading…
Add table
Reference in a new issue