Commit 28ee4ef7 authored by Simon Knox's avatar Simon Knox

enable dragging and creating empty boards

NB: this changes all can? checks in board.html admin_list, this should be project dependent clientside
parent 631d9284
......@@ -9,7 +9,7 @@ module BoardsHelper
lists_endpoint: board_lists_path(board),
board_id: board.id,
board_milestone_title: board&.milestone&.title,
disabled: "#{!can?(current_user, :admin_list, @project)}",
disabled: "#{!can?(current_user, :admin_list, current_board_parent)}",
issue_link_base: @issues_path,
root_path: root_path,
bulk_update_path: @bulk_issues_path,
......
......@@ -12,7 +12,7 @@
.issue-count-badge.pull-right.clearfix{ "v-if" => 'list.type !== "blank"' }
%span.issue-count-badge-count.pull-left{ ":class" => '{ "has-btn": list.type !== "closed" && !disabled }' }
{{ list.issuesSize }}
- if can?(current_user, :admin_issue, current_board_parent)
- if can?(current_user, :admin_list, current_board_parent)
%button.issue-count-badge-add-button.btn.btn-small.btn-default.has-tooltip.js-no-trigger-collapse{ type: "button",
"@click" => "showNewIssueForm",
"v-if" => 'list.type !== "closed"',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment