From 17e12a706d46090fc2df73668e73be2a3a44c61d Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Mon, 30 Oct 2017 15:54:17 +0100 Subject: [PATCH 1/2] Add proper title to Share input Signed-off-by: Jan-Christoph Borchardt --- core/js/sharedialogview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 6b65e46b2547e..908d552fba678 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -18,7 +18,7 @@ var TEMPLATE_BASE = '
' + '{{#if isSharingAllowed}}' + - '' + + '' + '
' + ' ' + ' '+ @@ -414,7 +414,7 @@ this.$el.html(baseTemplate({ cid: this.cid, - shareLabel: t('core', 'Share'), + shareLabel: t('core', 'Share via email or with users'), sharePlaceholder: this._renderSharePlaceholderPart(), shareInfo: this._renderShareInfoPart(), isSharingAllowed: this.model.sharePermissionPossible() From e5eb4c75a90fa9fdb2b9e0487d9a9a6945bf8bb7 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Mon, 30 Oct 2017 15:55:11 +0100 Subject: [PATCH 2/2] Start moving share options to 3-dot-menu Signed-off-by: Jan-Christoph Borchardt --- core/js/sharedialoglinkshareview.js | 83 ++++++++++++++--------------- 1 file changed, 39 insertions(+), 44 deletions(-) diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index dc3b6f062b83e..33db633de602e 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -28,54 +28,13 @@ '
' + '' + '' + - '{{#if singleAction}}' + - '' + - '{{else}}' + - '' + + '' + '{{{popoverMenu}}}' + - '{{/if}}' + - '
' + - '{{#if publicUpload}}' + - '
' + - '' + - '' + - '' + - '
' + - '
' + - '' + - '' + - '' + - '
' + - '
' + - '' + - '' + - '' + - '
' + - '{{/if}}' + - ' {{#if publicEditing}}' + - '
' + - ' ' + - ' ' + - '' + - '
' + - ' {{/if}}' + - ' {{#if showPasswordCheckBox}}' + - '' + - '' + - ' {{/if}}' + - '
' + - ' ' + - ' {{#if showPasswordCheckBox}}' + - ' ' + - ' {{else}}' + - ' ' + - ' {{/if}}' + - ' ' + - '
' + '{{else}}' + // FIXME: this doesn't belong in this view '{{#if noSharingPlaceholder}}{{/if}}' + '{{/if}}' + '
' ; var TEMPLATE_POPOVER_MENU = ''; @@ -437,7 +433,6 @@ publicEditingLabel: t('core', 'Allow editing'), mailPrivatePlaceholder: t('core', 'Email link to person'), mailButtonText: t('core', 'Send'), - singleAction: OC.Share.Social.Collection.size() == 0, popoverMenu: popover, publicUploadRWLabel: t('core', 'Allow upload and editing'), publicUploadRLabel: t('core', 'Read only'),