mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Readonly attachments (#3587)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
30f255fa7c
commit
2968666cb3
@ -131,7 +131,7 @@
|
||||
>
|
||||
<Label label={presentation.string.Download} />
|
||||
</a>
|
||||
{#if removable}
|
||||
{#if removable && value.readonly !== true}
|
||||
<span>•</span>
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<span
|
||||
|
@ -31,6 +31,8 @@ export interface Attachment extends AttachedDoc {
|
||||
lastModified: number
|
||||
description?: string
|
||||
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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user