Merge pull request #2460 from nextcloud/stable10-2010
[stable10] Fixed disappearing of share info in file view
This commit is contained in:
commit
8f8250caf4
|
@ -71,6 +71,12 @@
|
||||||
var fileInfo = oldElementToFile.apply(this, arguments);
|
var fileInfo = oldElementToFile.apply(this, arguments);
|
||||||
fileInfo.sharePermissions = $el.attr('data-share-permissions') || undefined;
|
fileInfo.sharePermissions = $el.attr('data-share-permissions') || undefined;
|
||||||
fileInfo.shareOwner = $el.attr('data-share-owner') || undefined;
|
fileInfo.shareOwner = $el.attr('data-share-owner') || undefined;
|
||||||
|
|
||||||
|
if( $el.attr('data-share-types')){
|
||||||
|
var shareTypes = $el.attr('data-share-types').split(',');
|
||||||
|
fileInfo.shareTypes = shareTypes;
|
||||||
|
}
|
||||||
|
|
||||||
return fileInfo;
|
return fileInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -246,4 +252,3 @@
|
||||||
})();
|
})();
|
||||||
|
|
||||||
OC.Plugins.register('OCA.Files.FileList', OCA.Sharing.Util);
|
OC.Plugins.register('OCA.Files.FileList', OCA.Sharing.Util);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue