diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-04-18 11:14:15 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-04-18 11:14:15 +0000 |
commit | 00c1e31c1c3a5631b85a0f2be1389d0c87be376c (patch) | |
tree | 83c61fad7e74c7b51162289f7c3d7406572ff38a /app/views | |
parent | d2b3ed17bbf79242e7f2478b954b9cba7a3768c8 (diff) | |
parent | 5a1e00c0d01ec540cc422c503f38ad203bd8fb6d (diff) | |
download | gitlab-ce-00c1e31c1c3a5631b85a0f2be1389d0c87be376c.tar.gz |
Merge branch 'disable-recent-search-on-boards' into 'master'
Disable recent search on issue boards
Closes #30919
See merge request !10686
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/shared/issuable/_search_bar.html.haml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/shared/issuable/_search_bar.html.haml b/app/views/shared/issuable/_search_bar.html.haml index b447996a8ab..f1350169bbe 100644 --- a/app/views/shared/issuable/_search_bar.html.haml +++ b/app/views/shared/issuable/_search_bar.html.haml @@ -12,13 +12,14 @@ class: "check_all_issues left" .issues-other-filters.filtered-search-wrapper .filtered-search-box - = dropdown_tag(content_tag(:i, '', class: 'fa fa-history'), - options: { wrapper_class: "filtered-search-history-dropdown-wrapper", - toggle_class: "filtered-search-history-dropdown-toggle-button", - dropdown_class: "filtered-search-history-dropdown", - content_class: "filtered-search-history-dropdown-content", - title: "Recent searches" }) do - .js-filtered-search-history-dropdown + - if type != :boards_modal && type != :boards + = dropdown_tag(content_tag(:i, '', class: 'fa fa-history'), + options: { wrapper_class: "filtered-search-history-dropdown-wrapper", + toggle_class: "filtered-search-history-dropdown-toggle-button", + dropdown_class: "filtered-search-history-dropdown", + content_class: "filtered-search-history-dropdown-content", + title: "Recent searches" }) do + .js-filtered-search-history-dropdown .filtered-search-box-input-container .scroll-container %ul.tokens-container.list-unstyled |