mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 02:18:50 -07: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
@ -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 New Issue
Block a user