Use recipient display names when updating shares in the UI
Since OC.Share didn't have any array containing the list of shares for the current file, OC.Share.currentShares has been introduced to contain the full share item structure instead of the reduced one OC.Share.itemShares. The event "sharesChanged" is now passing OC.Share.currentShares, which itself includes the display name to be displayed for the recipients in the action icon.
Showing
- apps/files_sharing/js/share.js 6 additions, 4 deletionsapps/files_sharing/js/share.js
- apps/files_sharing/tests/js/shareSpec.js 27 additions, 21 deletionsapps/files_sharing/tests/js/shareSpec.js
- core/js/share.js 35 additions, 4 deletionscore/js/share.js
- core/js/tests/specs/shareSpec.js 17 additions, 23 deletionscore/js/tests/specs/shareSpec.js
Loading
Please register or sign in to comment