summaryrefslogtreecommitdiff
path: root/app/views/shared/boards/components/sidebar/_labels.html.haml
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-10-18 20:06:33 -0500
committerBrett Walker <bwalker@gitlab.com>2018-10-31 19:01:04 -0500
commita8869a571b3093004d8777cfe1a3e56a22db0210 (patch)
treef1bde41b632802a45489ac30de861ef330efe0c6 /app/views/shared/boards/components/sidebar/_labels.html.haml
parent31733b6fc5a9ba4443a5dd279e787e2fd8e31c6d (diff)
downloadgitlab-ce-a8869a571b3093004d8777cfe1a3e56a22db0210.tar.gz
Dynamically store the valid label endpoint
In order to ensure we have the right endpoint to query for an issue's possible valid labels, we store that url in the issue object that gets passed to the frontend.
Diffstat (limited to 'app/views/shared/boards/components/sidebar/_labels.html.haml')
-rw-r--r--app/views/shared/boards/components/sidebar/_labels.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/boards/components/sidebar/_labels.html.haml b/app/views/shared/boards/components/sidebar/_labels.html.haml
index 6138914206b..3448ee8350b 100644
--- a/app/views/shared/boards/components/sidebar/_labels.html.haml
+++ b/app/views/shared/boards/components/sidebar/_labels.html.haml
@@ -19,13 +19,13 @@
":value" => "label.id" }
.dropdown
%button.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar{ type: "button",
- "v-bind:data-selected" => "selectedLabels",
+ ":data-selected" => "selectedLabels",
+ ":data-labels" => "issue.validLabelsEndpoint",
data: { toggle: "dropdown",
field_name: "issue[label_names][]",
show_no: "true",
show_any: "true",
project_id: @project&.try(:id),
- labels: labels_filter_path_with_defaults,
namespace_path: @namespace_path,
project_path: @project.try(:path) } }
%span.dropdown-toggle-text