mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00: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;
|
||||
|
||||
@ValidateUUID()
|
||||
@Optional()
|
||||
libraryId?: string;
|
||||
|
||||
@IsString()
|
||||
|
|
|
@ -143,7 +143,7 @@
|
|||
{/if}
|
||||
|
||||
{#if isOwner}
|
||||
{#if !asset.isReadOnly && !asset.isExternal}
|
||||
{#if !asset.isReadOnly || !asset.isExternal}
|
||||
<CircleIconButton isOpacity={true} logo={DeleteOutline} on:click={() => dispatch('delete')} title="Delete" />
|
||||
{/if}
|
||||
<div use:clickOutside on:outclick={() => (isShowAssetOptions = false)}>
|
||||
|
|
Loading…
Reference in a new issue