From f861c84b974f4cec33f8b6ef7f39dae9426d5ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 22 Jan 2019 13:13:41 +0100 Subject: [PATCH] Call proper function when fetching link shares in the breadcrumb view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files_sharing/js/sharebreadcrumbview.js | 2 +- apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files_sharing/js/sharebreadcrumbview.js b/apps/files_sharing/js/sharebreadcrumbview.js index 64d2df52d2..17e3eae0bf 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 c58e038c4a..2386a03701 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);