Merge pull request #13734 from nextcloud/bugfix/noid/link-share-breadcrumb
Call proper function when fetching link shares in the breadcrumb view
This commit is contained in:
commit
31335f983c
|
@ -84,7 +84,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (shareModel.hasLinkShare()) {
|
||||
if (shareModel.hasLinkShares()) {
|
||||
shareTypes.push(OC.Share.SHARE_TYPE_LINK);
|
||||
}
|
||||
|
||||
|
|
|
@ -194,7 +194,7 @@ describe('OCA.Sharing.ShareBreadCrumbView tests', function() {
|
|||
|
||||
var model = sinon.createStubInstance(OC.Share.ShareItemModel);
|
||||
model.getSharesWithCurrentItem = function() { return [] };
|
||||
model.hasLinkShare = function() { return false; };
|
||||
model.hasLinkShares = function() { return false; };
|
||||
|
||||
shareTab.trigger('sharesChanged', model);
|
||||
|
||||
|
@ -227,7 +227,7 @@ describe('OCA.Sharing.ShareBreadCrumbView tests', function() {
|
|||
model.getSharesWithCurrentItem = function() { return [
|
||||
{share_type: OC.Share.SHARE_TYPE_USER}
|
||||
] };
|
||||
model.hasLinkShare = function() { return true; };
|
||||
model.hasLinkShares = function() { return true; };
|
||||
|
||||
shareTab.trigger('sharesChanged', model);
|
||||
|
||||
|
|
Loading…
Reference in New Issue