diff --git a/apps/files_sharing/js/sharebreadcrumbview.js b/apps/files_sharing/js/sharebreadcrumbview.js index 64d2df52d2ca328facdd8b3e0d9d62df5d737f4e..17e3eae0bf5a6f1ab7af2ce34babcc3fc7bf54da 100644 --- a/apps/files_sharing/js/sharebreadcrumbview.js +++ b/apps/files_sharing/js/sharebreadcrumbview.js @@ -84,7 +84,7 @@ } } - if (shareModel.hasLinkShare()) { + if (shareModel.hasLinkShares()) { shareTypes.push(OC.Share.SHARE_TYPE_LINK); } diff --git a/apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js b/apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js index c58e038c4ab7e03c4438bbc24112f1ef36210c83..2386a037013c3485187c28717e7c16acb80143bf 100644 --- a/apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js +++ b/apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js @@ -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);