show remote server on auto complete

This commit is contained in:
Bjoern Schiessle 2016-02-12 15:27:58 +01:00
parent 11abf2487c
commit 862e28f006
1 changed files with 5 additions and 1 deletions

View File

@ -219,7 +219,11 @@
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) {