summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-01-23 19:14:41 +0100
committerGitHub <noreply@github.com>2019-01-23 19:14:41 +0100
commit31335f983c87a712b76d9b09c51be347e9cddb15 (patch)
tree516fced9cb27734a4a1fea0bc6f0d90a881fd4e0
parentae25fd23898561d12e970e7cce79a804fba069be (diff)
parente5445ccbba7c552ca152d9e1c9b5b82e9be5187f (diff)
downloadnextcloud-server-31335f983c87a712b76d9b09c51be347e9cddb15.tar.gz
nextcloud-server-31335f983c87a712b76d9b09c51be347e9cddb15.zip
Merge pull request #13734 from nextcloud/bugfix/noid/link-share-breadcrumb
Call proper function when fetching link shares in the breadcrumb view
-rw-r--r--apps/files_sharing/js/sharebreadcrumbview.js2
-rw-r--r--apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/js/sharebreadcrumbview.js b/apps/files_sharing/js/sharebreadcrumbview.js
index 64d2df52d2c..17e3eae0bf5 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 c58e038c4ab..2386a037013 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);