From a57161f1e73a1238cf7ffa0ac39e5b6be54f105f Mon Sep 17 00:00:00 2001
From: Marin Treselj <marin@pixelipo.com>
Date: Thu, 21 Sep 2017 14:21:37 +0200
Subject: [PATCH] Restore 'Shared' text field for owner, since 'recipients' is
 still empty.

Signed-off-by: Marin Treselj <marin@pixelipo.com>
---
 core/js/share.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/js/share.js b/core/js/share.js
index 35214fb11b8..240fc0fb761 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -295,7 +295,7 @@ OC.Share = _.extend(OC.Share || {}, {
 			recipients = $tr.attr('data-share-recipients');
 			action.addClass('shared-style');
 
-			message = t('core', 'Shared');
+			avatars = '<span>' + t('core', 'Shared') + '</span>';
 			// even if reshared, only show "Shared by"
 			if (owner) {
 				message = t('core', 'Shared by ');
@@ -312,8 +312,7 @@ OC.Share = _.extend(OC.Share || {}, {
 
 				action.find('.remoteAddress').tooltip({placement: 'top'});
 			}
-		}
-		else {
+		} else {
 			action.html('<span class="hidden-visually">' + t('core', 'Shared') + '</span>').prepend(icon);
 		}
 		if (hasLink) {
-- 
GitLab