Skip to content

Commit

Permalink
WIP: Simplify share list text
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Oct 18, 2018
1 parent 48da542 commit 8350f49
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions core/js/sharedialogview.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,26 +466,25 @@
},

autocompleteRenderItem: function(ul, item) {

var icon = 'icon-user';
var text = item.label;
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
text = t('core', '{sharee} (group)', { sharee: text }, undefined, { escape: false });
text = t('core', '{sharee}', { sharee: text }, undefined, { escape: false });
icon = 'icon-contacts-dark';
} else if (item.value.shareType === OC.Share.SHARE_TYPE_REMOTE) {
text = t('core', '{sharee} (remote)', {sharee: text}, undefined, {escape: false});
text = t('core', '{sharee}', {sharee: text}, undefined, {escape: false});
icon = 'icon-shared';
} else if (item.value.shareType === OC.Share.SHARE_TYPE_REMOTE_GROUP) {
text = t('core', '{sharee} (remote group)', { sharee: text }, undefined, { escape: false });
icon = 'icon-shared';
} else if (item.value.shareType === OC.Share.SHARE_TYPE_EMAIL) {
text = t('core', '{sharee} (email)', { sharee: text }, undefined, { escape: false });
text = t('core', '{sharee}', { sharee: text }, undefined, { escape: false });
icon = 'icon-mail';
} else if (item.value.shareType === OC.Share.SHARE_TYPE_CIRCLE) {
text = t('core', '{sharee} ({type}, {owner})', {sharee: text, type: item.value.circleInfo, owner: item.value.circleOwner}, undefined, {escape: false});
icon = 'icon-circle';
} else if (item.value.shareType === OC.Share.SHARE_TYPE_ROOM) {
text = t('core', '{sharee} (conversation)', { sharee: text }, undefined, { escape: false });
text = t('core', '{sharee}', { sharee: text }, undefined, { escape: false });
icon = 'icon-talk';
}
var description = '';
Expand Down

0 comments on commit 8350f49

Please sign in to comment.