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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
9b1e49af
Commit
9b1e49af
authored
Oct 31, 2018
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename to assignable_labels_endpoint
parent
a8869a57
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/boards/models/issue.js
app/assets/javascripts/boards/models/issue.js
+1
-1
app/models/issue.rb
app/models/issue.rb
+1
-1
app/views/shared/boards/components/sidebar/_labels.html.haml
app/views/shared/boards/components/sidebar/_labels.html.haml
+1
-1
spec/fixtures/api/schemas/issue.json
spec/fixtures/api/schemas/issue.json
+1
-1
No files found.
app/assets/javascripts/boards/models/issue.js
View file @
9b1e49af
...
...
@@ -30,7 +30,7 @@ class ListIssue {
this
.
toggleSubscriptionEndpoint
=
obj
.
toggle_subscription_endpoint
;
this
.
milestone_id
=
obj
.
milestone_id
;
this
.
project_id
=
obj
.
project_id
;
this
.
validLabelsEndpoint
=
obj
.
valid
_labels_endpoint
;
this
.
assignableLabelsEndpoint
=
obj
.
assignable
_labels_endpoint
;
if
(
obj
.
project
)
{
this
.
project
=
new
IssueProject
(
obj
.
project
);
...
...
app/models/issue.rb
View file @
9b1e49af
...
...
@@ -241,7 +241,7 @@ class Issue < ActiveRecord::Base
real_path:
url_helper
.
project_issue_path
(
project
,
self
),
issue_sidebar_endpoint:
url_helper
.
project_issue_path
(
project
,
self
,
format: :json
,
serializer:
'sidebar'
),
toggle_subscription_endpoint:
url_helper
.
toggle_subscription_project_issue_path
(
project
,
self
),
valid
_labels_endpoint:
url_helper
.
project_labels_path
(
project
,
format: :json
,
include_ancestor_groups:
true
)
assignable
_labels_endpoint:
url_helper
.
project_labels_path
(
project
,
format: :json
,
include_ancestor_groups:
true
)
)
end
...
...
app/views/shared/boards/components/sidebar/_labels.html.haml
View file @
9b1e49af
...
...
@@ -20,7 +20,7 @@
.dropdown
%button
.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar
{
type:
"button"
,
":data-selected"
=>
"selectedLabels"
,
":data-labels"
=>
"issue.
valid
LabelsEndpoint"
,
":data-labels"
=>
"issue.
assignable
LabelsEndpoint"
,
data:
{
toggle:
"dropdown"
,
field_name:
"issue[label_names][]"
,
show_no:
"true"
,
...
...
spec/fixtures/api/schemas/issue.json
View file @
9b1e49af
...
...
@@ -15,7 +15,7 @@
"relative_position"
:
{
"type"
:
"integer"
},
"issue_sidebar_endpoint"
:
{
"type"
:
"string"
},
"toggle_subscription_endpoint"
:
{
"type"
:
"string"
},
"
valid
_labels_endpoint"
:
{
"type"
:
"string"
},
"
assignable
_labels_endpoint"
:
{
"type"
:
"string"
},
"reference_path"
:
{
"type"
:
"string"
},
"real_path"
:
{
"type"
:
"string"
},
"project"
:
{
...
...
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