mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
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:
parent
b1d4c3f50b
commit
e5445ccbba
2 changed files with 3 additions and 3 deletions
|
|
@ -84,7 +84,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (shareModel.hasLinkShare()) {
|
||||
if (shareModel.hasLinkShares()) {
|
||||
shareTypes.push(OC.Share.SHARE_TYPE_LINK);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue