From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 31 Dec 2023 18:55:25 +0000 (-0800) Subject: Disable custom field remove button if user does not have permissions (#5194) X-Git-Tag: v2.3.0~1^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35a4d3fb54fbd9c91246b79746cc25b1b5e26441;p=thirdparty%2Fpaperless-ngx.git Disable custom field remove button if user does not have permissions (#5194) --- diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index 3cd12201a3..5000af93d1 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -123,28 +123,73 @@
@switch (getCustomFieldFromInstance(fieldInstance)?.data_type) { @case (PaperlessCustomFieldDataType.String) { - + } @case (PaperlessCustomFieldDataType.Date) { - + } @case (PaperlessCustomFieldDataType.Integer) { - + } @case (PaperlessCustomFieldDataType.Float) { - + } @case (PaperlessCustomFieldDataType.Monetary) { - + } @case (PaperlessCustomFieldDataType.Boolean) { - + } @case (PaperlessCustomFieldDataType.Url) { - + } @case (PaperlessCustomFieldDataType.DocumentLink) { - + } }