fix: cli import (#4224)

* fix: allow import of assets

* fix: allow deletion of read only assets
This commit is contained in:
Jonathan Jogenfors 2023-09-26 01:04:30 +02:00 committed by GitHub
parent 54bea23485
commit 9676412875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ export class ImportAssetDto extends CreateAssetBase {
isReadOnly?: boolean = true;
@ValidateUUID()
@Optional()
libraryId?: string;
@IsString()

View File

@ -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)}>