]> source.dussan.org Git - nextcloud-server.git/commitdiff
simplify share placeholder 4321/head
authorBjoern Schiessle <bjoern@schiessle.org>
Tue, 18 Apr 2017 10:08:35 +0000 (12:08 +0200)
committerBjoern Schiessle <bjoern@schiessle.org>
Tue, 18 Apr 2017 10:08:35 +0000 (12:08 +0200)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
core/js/sharedialogview.js

index 99a23cf91441e5cecb83c1e2ff77c4aaa71cb8a4..3b09d13a7e2d3510d7070ecd83739061aade93d7 100644 (file)
                },
 
                _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...');
                },
 
                /**