diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-18 12:08:35 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-04-18 12:08:35 +0200 |
commit | c6ae57eceeda6ffd41278adff115aeaf14b2b5b3 (patch) | |
tree | 8c80dd6c772522f417808010f392b3610d2d746d /core/js/sharedialogview.js | |
parent | a3c9dcf82a5b242f8b04bb6731522c151af08f0f (diff) | |
download | nextcloud-server-c6ae57eceeda6ffd41278adff115aeaf14b2b5b3.tar.gz nextcloud-server-c6ae57eceeda6ffd41278adff115aeaf14b2b5b3.zip |
simplify share placeholder
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core/js/sharedialogview.js')
-rw-r--r-- | core/js/sharedialogview.js | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 99a23cf9144..3b09d13a7e2 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -479,33 +479,20 @@ }, _renderSharePlaceholderPart: function () { - var allowGroupSharing = this.configModel.get('allowGroupSharing'); var allowRemoteSharing = this.configModel.get('isRemoteShareAllowed'); var allowMailSharing = this.configModel.get('isMailShareAllowed'); - if (!allowGroupSharing && !allowRemoteSharing && allowMailSharing) { - return t('core', 'Share with users or by mail...'); + if (!allowRemoteSharing && allowMailSharing) { + return t('core', 'Name or email address...'); } - if (!allowGroupSharing && allowRemoteSharing && !allowMailSharing) { - return t('core', 'Share with users or remote users...'); + if (allowRemoteSharing && !allowMailSharing) { + return t('core', 'Name or federated cloud ID...'); } - if (!allowGroupSharing && allowRemoteSharing && allowMailSharing) { - return t('core', 'Share with users, remote users or by mail...'); - } - if (allowGroupSharing && !allowRemoteSharing && !allowMailSharing) { - return t('core', 'Share with users or groups...'); - } - if (allowGroupSharing && !allowRemoteSharing && allowMailSharing) { - return t('core', 'Share with users, groups or by mail...'); - } - if (allowGroupSharing && allowRemoteSharing && !allowMailSharing) { - return t('core', 'Share with users, groups or remote users...'); - } - if (allowGroupSharing && allowRemoteSharing && allowMailSharing) { - return t('core', 'Share with users, groups, remote users or by mail...'); + if (allowRemoteSharing && allowMailSharing) { + return t('core', 'Name, federated cloud ID or email address...'); } - return t('core', 'Share with users...'); + return t('core', 'Name...'); }, /** |