Skip to content
Snippets Groups Projects
Commit af6a65cb authored by Vincent Petry's avatar Vincent Petry
Browse files

Do not update action icon recipients for file list

Since the files app doesn't have the recipient information on load it
cannot initially render the recipients in the action icons.

For this reason the action icon will not be updated with the recipients
after changing the shares, for consistency.
parent 07f1b263
No related branches found
No related tags found
No related merge requests found
......@@ -115,6 +115,11 @@
OC.Share.showDropDown(itemType, $tr.data('id'), appendTo, true, possiblePermissions, filename);
}
$('#dropdown').on('sharesChanged', function(ev) {
// files app current cannot show recipients on load, so we don't update the
// icon when changed for consistency
if (context.fileList.$el.closest('#app-content-files').length) {
return;
}
var recipients = _.pluck(ev.shares[OC.Share.SHARE_TYPE_USER], 'share_with_displayname');
var groupRecipients = _.pluck(ev.shares[OC.Share.SHARE_TYPE_GROUP], 'share_with_displayname');
recipients = recipients.concat(groupRecipients);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment