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:
John Molakvoæ 2019-01-23 19:14:41 +01:00 committed by GitHub
commit 31335f983c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@
}
}
if (shareModel.hasLinkShare()) {
if (shareModel.hasLinkShares()) {
shareTypes.push(OC.Share.SHARE_TYPE_LINK);
}

View File

@ -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);