Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
e5445ccb
Unverified
Commit
e5445ccb
authored
6 years ago
by
Julius Härtl
Browse files
Options
Downloads
Patches
Plain Diff
Call proper function when fetching link shares in the breadcrumb view
Signed-off-by:
Julius Härtl
<
jus@bitgrid.net
>
parent
b1d4c3f5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/files_sharing/js/sharebreadcrumbview.js
+1
-1
1 addition, 1 deletion
apps/files_sharing/js/sharebreadcrumbview.js
apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js
+2
-2
2 additions, 2 deletions
apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js
with
3 additions
and
3 deletions
apps/files_sharing/js/sharebreadcrumbview.js
+
1
−
1
View file @
e5445ccb
...
...
@@ -84,7 +84,7 @@
}
}
if
(
shareModel
.
hasLinkShare
())
{
if
(
shareModel
.
hasLinkShare
s
())
{
shareTypes
.
push
(
OC
.
Share
.
SHARE_TYPE_LINK
);
}
...
...
This diff is collapsed.
Click to expand it.
apps/files_sharing/tests/js/sharedbreadcrumviewSpec.js
+
2
−
2
View file @
e5445ccb
...
...
@@ -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
.
hasLinkShare
s
=
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
.
hasLinkShare
s
=
function
()
{
return
true
;
};
shareTab
.
trigger
(
'
sharesChanged
'
,
model
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment