Fix displaying owner before share icon in file list
Initial display of owner was missing
This commit is contained in:
parent
66ee9d56fc
commit
a9aa39efbf
|
@ -111,8 +111,9 @@
|
|||
|
||||
_.each($files, function(file) {
|
||||
var $tr = $(file);
|
||||
var shareTypes = $tr.attr('data-share-types');
|
||||
if (shareTypes) {
|
||||
var shareTypes = $tr.attr('data-share-types') || '';
|
||||
var shareOwner = $tr.attr('data-share-owner');
|
||||
if (shareTypes || shareOwner) {
|
||||
var hasLink = false;
|
||||
var hasShares = false;
|
||||
_.each(shareTypes.split(',') || [], function(shareType) {
|
||||
|
|
|
@ -141,7 +141,7 @@ describe('OCA.Sharing.Util tests', function() {
|
|||
permissions: OC.PERMISSION_ALL,
|
||||
shareOwner: 'User One',
|
||||
etag: 'abc',
|
||||
shareTypes: [OC.Share.SHARE_TYPE_USER]
|
||||
shareTypes: []
|
||||
}]);
|
||||
$tr = fileList.$el.find('tbody tr:first');
|
||||
$action = $tr.find('.action-share');
|
||||
|
|
Loading…
Reference in New Issue