]> source.dussan.org Git - nextcloud-server.git/commitdiff
show remote server on auto complete
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 12 Feb 2016 14:27:58 +0000 (15:27 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Fri, 12 Feb 2016 14:52:51 +0000 (15:52 +0100)
core/js/sharedialogview.js

index 4cebf7962e8b081c0d10d625e1ee69e8cb038afa..b9628f223a9714a229c980debe586af9e97db9d9 100644 (file)
                        if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
                                text = text +  ' ('+t('core', 'group')+')';
                        } else if (item.value.shareType === OC.Share.SHARE_TYPE_REMOTE) {
-                               text = text +  ' ('+t('core', 'remote')+')';
+                               if (item.value.server) {
+                                       text = text + ' (' + t('core', 'at') + ' ' + item.value.server + ')';
+                               } else {
+                                       text = text + ' (' + t('core', 'remote') + ')';
+                               }
                        }
                        insert.text(text);
                        if(item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {