mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +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} />
|
<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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user