Commit 93361fc5 authored by Brett Walker's avatar Brett Walker

Rename to assignable_labels_endpoint

parent 839b38ac
...@@ -29,7 +29,7 @@ class ListIssue { ...@@ -29,7 +29,7 @@ class ListIssue {
this.path = obj.real_path; this.path = obj.real_path;
this.toggleSubscriptionEndpoint = obj.toggle_subscription_endpoint; this.toggleSubscriptionEndpoint = obj.toggle_subscription_endpoint;
this.project_id = obj.project_id; this.project_id = obj.project_id;
this.validLabelsEndpoint = obj.valid_labels_endpoint; this.assignableLabelsEndpoint = obj.assignable_labels_endpoint;
if (obj.project) { if (obj.project) {
this.project = new IssueProject(obj.project); this.project = new IssueProject(obj.project);
......
...@@ -241,7 +241,7 @@ class Issue < ActiveRecord::Base ...@@ -241,7 +241,7 @@ class Issue < ActiveRecord::Base
real_path: url_helper.project_issue_path(project, self), real_path: url_helper.project_issue_path(project, self),
issue_sidebar_endpoint: url_helper.project_issue_path(project, self, format: :json, serializer: 'sidebar'), 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), 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 end
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
.dropdown .dropdown
%button.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar{ type: "button", %button.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar{ type: "button",
":data-selected" => "selectedLabels", ":data-selected" => "selectedLabels",
":data-labels" => "issue.validLabelsEndpoint", ":data-labels" => "issue.assignableLabelsEndpoint",
data: { toggle: "dropdown", data: { toggle: "dropdown",
field_name: "issue[label_names][]", field_name: "issue[label_names][]",
show_no: "true", show_no: "true",
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"relative_position": { "type": "integer" }, "relative_position": { "type": "integer" },
"issue_sidebar_endpoint": { "type": "string" }, "issue_sidebar_endpoint": { "type": "string" },
"toggle_subscription_endpoint": { "type": "string" }, "toggle_subscription_endpoint": { "type": "string" },
"valid_labels_endpoint": { "type": "string" }, "assignable_labels_endpoint": { "type": "string" },
"reference_path": { "type": "string" }, "reference_path": { "type": "string" },
"real_path": { "type": "string" }, "real_path": { "type": "string" },
"project": { "project": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment