Readonly attachments (#3587)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2023-08-15 10:55:58 +07:00 committed by GitHub
parent 30f255fa7c
commit 2968666cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,7 @@
> >
<Label label={presentation.string.Download} /> <Label label={presentation.string.Download} />
</a> </a>
{#if removable} {#if removable && value.readonly !== true}
<span></span> <span></span>
<!-- svelte-ignore a11y-click-events-have-key-events --> <!-- svelte-ignore a11y-click-events-have-key-events -->
<span <span

View File

@ -31,6 +31,8 @@ export interface Attachment extends AttachedDoc {
lastModified: number lastModified: number
description?: string description?: string
pinned?: boolean // If defined and true, will be shown in top of attachments collection pinned?: boolean // If defined and true, will be shown in top of attachments collection
readonly?: boolean // If readonly, user will not be able to remove or modify this attachment
} }
/** /**