Display file owner information (if not self) in share view
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Sun, 20 Oct 2024 09:36:52 +0000 (17:36 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 22 Nov 2024 08:33:49 +0000 (16:33 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/filedetails/ShareView.qml

index e7e6046b7f38e918453833f2e7d2e55eb1fc31d6..33bc0040e0a089397aefd05882e79a47d9561248 100644 (file)
@@ -139,6 +139,19 @@ ColumnLayout {
         }
     }
 
+    Column {
+        Layout.fillWidth: true
+        Layout.leftMargin: root.horizontalPadding
+        Layout.rightMargin: root.horizontalPadding
+
+        EnforcedPlainTextLabel {
+            visible: shareModel.displayFileOwner
+            text: qsTr("Shared with you by %1").arg(shareModel.fileOwnerDisplayName)
+        }
+
+        visible: shareModel.displayFileOwner
+    }
+
     ShareeSearchField {
         id: shareeSearchField
         Layout.fillWidth: true