diff options
author | Phil Hughes <me@iamphill.com> | 2016-07-20 09:45:53 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-07-20 10:48:02 +0100 |
commit | 5995a629817a409b7cc2d9410716d2e4c2feaf4a (patch) | |
tree | ec21b25bab3fe9c657716d75db1a04c61be8f23b /app/views/shared/issuable/_milestone_dropdown.html.haml | |
parent | a87e0dacfcc8067cdb829768fa95dc7139f3cc50 (diff) | |
download | gitlab-ce-5995a629817a409b7cc2d9410716d2e4c2feaf4a.tar.gz |
Fixed up frontend code based on feedback
Updated a test to be more specific about where the content is
Diffstat (limited to 'app/views/shared/issuable/_milestone_dropdown.html.haml')
-rw-r--r-- | app/views/shared/issuable/_milestone_dropdown.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_milestone_dropdown.html.haml b/app/views/shared/issuable/_milestone_dropdown.html.haml index 6d9c5d345e4..44346fa1743 100644 --- a/app/views/shared/issuable/_milestone_dropdown.html.haml +++ b/app/views/shared/issuable/_milestone_dropdown.html.haml @@ -1,6 +1,6 @@ - project = @target_project || @project || @projects - extra_class = extra_class || '' -- selected_text = milestone_dropdown_selected_text(selected) +- selected_text = selected.try(:title) - if selected.present? = hidden_field_tag(name, selected.id) = dropdown_tag(milestone_dropdown_label(selected_text), options: { title: "Filter by milestone", toggle_class: "js-milestone-select js-filter-submit #{extra_class}", filter: true, dropdown_class: "dropdown-menu-selectable", |