summaryrefslogtreecommitdiff
path: root/app/views/projects/tree/_tree_header.html.haml
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-08-10 16:22:52 -0500
committerEric Eastwood <contact@ericeastwood.com>2017-08-14 11:11:00 -0500
commita2cb73b8be84376c1a647d38f3faa78d2ddec10a (patch)
tree48e9c093ad50f57e6ae6b861e77e4d1bd341bdcc /app/views/projects/tree/_tree_header.html.haml
parentd15b5c7f5da620cc773c413e7c281f1a34f15377 (diff)
downloadgitlab-ce-a2cb73b8be84376c1a647d38f3faa78d2ddec10a.tar.gz
Use single js- wrapper class to show/hide
Fix https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12198#note_37146360
Diffstat (limited to 'app/views/projects/tree/_tree_header.html.haml')
-rw-r--r--app/views/projects/tree/_tree_header.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/tree/_tree_header.html.haml b/app/views/projects/tree/_tree_header.html.haml
index 427b059cb82..853e2a6e7ec 100644
--- a/app/views/projects/tree/_tree_header.html.haml
+++ b/app/views/projects/tree/_tree_header.html.haml
@@ -2,8 +2,9 @@
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path
- if show_new_repo?
- = icon('long-arrow-right', title: 'to target branch')
- = render 'shared/target_switcher', destination: 'tree', path: @path
+ .tree-ref-target-holder.js-tree-ref-target-holder
+ = icon('long-arrow-right', title: 'to target branch')
+ = render 'shared/target_switcher', destination: 'tree', path: @path
- unless show_new_repo?
= render 'projects/tree/old_tree_header'