From 50a86f8cb0ca1a05f7ce3b1d34941be24572404b Mon Sep 17 00:00:00 2001 From: Tomas Mizera Date: Fri, 24 May 2024 11:57:41 +0200 Subject: [PATCH] Do not show photo inputs in read-only mode --- app/qml/form/components/photo/MMPhotoAttachment.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/qml/form/components/photo/MMPhotoAttachment.qml b/app/qml/form/components/photo/MMPhotoAttachment.qml index 73e57ffbb..c5ecd8f2d 100644 --- a/app/qml/form/components/photo/MMPhotoAttachment.qml +++ b/app/qml/form/components/photo/MMPhotoAttachment.qml @@ -58,6 +58,8 @@ Rectangle { horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter elide: Text.ElideMiddle + + visible: root.enabled } } @@ -95,6 +97,8 @@ Rectangle { horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter elide: Text.ElideMiddle + + visible: root.enabled } }