summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-30 15:56:45 +0000
committerFatih Acet <acetfatih@gmail.com>2017-02-03 17:02:44 +0300
commit6c828906a24e374c68884c8884135ec1472721b8 (patch)
treeb26371d79b28ebde942138e8155cd9ad486f251a /app/views
parentb129187267292fb1052c984878f5d6f41483c204 (diff)
downloadgitlab-ce-6c828906a24e374c68884c8884135ec1472721b8.tar.gz
Disabled add issues button if no lists exist
Diffstat (limited to 'app/views')
-rw-r--r--app/views/shared/issuable/_filter.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/shared/issuable/_filter.html.haml b/app/views/shared/issuable/_filter.html.haml
index 1b1348d435a..1eed314d068 100644
--- a/app/views/shared/issuable/_filter.html.haml
+++ b/app/views/shared/issuable/_filter.html.haml
@@ -38,8 +38,7 @@
#js-boards-search.issue-boards-search
%input.pull-left.form-control{ type: "search", placeholder: "Filter by name...", "v-model" => "filters.search", "debounce" => "250" }
- if can?(current_user, :admin_list, @project)
- %button.btn.btn-create.pull-right.prepend-left-10.js-show-add-issues{ type: "button" }
- Add issues
+ #js-add-issues-btn.pull-right.prepend-left-10
.dropdown.pull-right
%button.btn.btn-create.btn-inverted.js-new-board-list{ type: "button", data: { toggle: "dropdown", labels: labels_filter_path, namespace_path: @project.try(:namespace).try(:path), project_path: @project.try(:path) } }
Add list