Call proper function when fetching link shares in the breadcrumb view

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2019-01-22 13:13:41 +01:00 committed by Backportbot
parent e086a5e7f9
commit f861c84b97
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); 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); var model = sinon.createStubInstance(OC.Share.ShareItemModel);
model.getSharesWithCurrentItem = function() { return [] }; model.getSharesWithCurrentItem = function() { return [] };
model.hasLinkShare = function() { return false; }; model.hasLinkShares = function() { return false; };
shareTab.trigger('sharesChanged', model); shareTab.trigger('sharesChanged', model);
@ -227,7 +227,7 @@ describe('OCA.Sharing.ShareBreadCrumbView tests', function() {
model.getSharesWithCurrentItem = function() { return [ model.getSharesWithCurrentItem = function() { return [
{share_type: OC.Share.SHARE_TYPE_USER} {share_type: OC.Share.SHARE_TYPE_USER}
] }; ] };
model.hasLinkShare = function() { return true; }; model.hasLinkShares = function() { return true; };
shareTab.trigger('sharesChanged', model); shareTab.trigger('sharesChanged', model);