Skip to content
Snippets Groups Projects
Commit 9b1e49af authored by Brett Walker's avatar Brett Walker
Browse files

Rename to assignable_labels_endpoint

parent a8869a57
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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);
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -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.validLabelsEndpoint",
":data-labels" => "issue.assignableLabelsEndpoint",
data: { toggle: "dropdown",
field_name: "issue[label_names][]",
show_no: "true",
Loading
Loading
Loading
Loading
@@ -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": {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment