Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9d60b80a
Commit
9d60b80a
authored
Oct 20, 2020
by
Ammar Alakkad
Committed by
Phil Hughes
Oct 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use gon.relative_url_root instead of root_path
parent
a3ea9afb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees.vue
...cripts/sidebar/components/assignees/sidebar_assignees.vue
+4
-1
app/assets/javascripts/sidebar/components/reviewers/sidebar_reviewers.vue
...cripts/sidebar/components/reviewers/sidebar_reviewers.vue
+6
-1
No files found.
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees.vue
View file @
9d60b80a
...
...
@@ -56,6 +56,9 @@ export default {
// Note: Realtime is only available on issues right now, future support for MR wil be built later.
return
this
.
glFeatures
.
realTimeIssueSidebar
&&
this
.
issuableType
===
'
issue
'
;
},
relativeUrlRoot
()
{
return
gon
.
relative_url_root
??
''
;
},
},
created
()
{
this
.
removeAssignee
=
this
.
store
.
removeAssignee
.
bind
(
this
.
store
);
...
...
@@ -119,7 +122,7 @@ export default {
/>
<assignees
v-if=
"!store.isFetching.assignees"
:root-path=
"
store.rootPath
"
:root-path=
"
relativeUrlRoot
"
:users=
"store.assignees"
:editable=
"store.editable"
:issuable-type=
"issuableType"
...
...
app/assets/javascripts/sidebar/components/reviewers/sidebar_reviewers.vue
View file @
9d60b80a
...
...
@@ -50,6 +50,11 @@ export default {
loading
:
false
,
};
},
computed
:
{
relativeUrlRoot
()
{
return
gon
.
relative_url_root
??
''
;
},
},
created
()
{
this
.
removeReviewer
=
this
.
store
.
removeReviewer
.
bind
(
this
.
store
);
this
.
addReviewer
=
this
.
store
.
addReviewer
.
bind
(
this
.
store
);
...
...
@@ -97,7 +102,7 @@ export default {
/>
<reviewers
v-if=
"!store.isFetching.reviewers"
:root-path=
"
store.rootPath
"
:root-path=
"
relativeUrlRoot
"
:users=
"store.reviewers"
:editable=
"store.editable"
:issuable-type=
"issuableType"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment