Commit da8998f9 authored by Phil Hughes's avatar Phil Hughes

Changed how button is hidden when blank list

Added for attribute to title label
parent 284af578
No related merge requests found
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
%header.board-header{ ":class" => "{ 'has-border': list.label }", ":style" => "{ borderTopColor: (list.label ? list.label.color : null) }" } %header.board-header{ ":class" => "{ 'has-border': list.label }", ":style" => "{ borderTopColor: (list.label ? list.label.color : null) }" }
%h3.board-title.js-board-handle{ ":class" => "{ 'user-can-drag': (!disabled && !list.preset) }" } %h3.board-title.js-board-handle{ ":class" => "{ 'user-can-drag': (!disabled && !list.preset) }" }
{{ list.title }} {{ list.title }}
.board-issue-count-holder.pull-right.clearfix .board-issue-count-holder.pull-right.clearfix{ "v-if" => "list.type !== 'blank'" }
%span.board-issue-count.pull-left{ "v-if" => "list.type !== 'blank'", %span.board-issue-count.pull-left{ ":class" => "{ 'has-btn': list.type !== 'done' }" }
":class" => "{ 'has-btn': list.type !== 'done' }" }
{{ list.issuesSize }} {{ list.issuesSize }}
- if can? current_user, :create_issue, @project - if can? current_user, :create_issue, @project
%button.btn.btn-small.btn-default.pull-right{ type: "button", %button.btn.btn-small.btn-default.pull-right{ type: "button",
"@click" => "showNewIssueForm", "@click" => "showNewIssueForm",
"v-if" => "list.type !== 'done' && list.type !== 'blank'" } "v-if" => "list.type !== 'done'",
"aria-label" => "Show new issue form" }
= icon("plus") = icon("plus")
- if can?(current_user, :admin_list, @project) - if can?(current_user, :admin_list, @project)
%board-delete{ "inline-template" => true, %board-delete{ "inline-template" => true,
...@@ -44,11 +44,12 @@ ...@@ -44,11 +44,12 @@
"v-show" => "list.type !== 'done' && showIssueForm" } "v-show" => "list.type !== 'done' && showIssueForm" }
.card.board-new-issue-form .card.board-new-issue-form
%form{ "@submit" => "submit($event)" } %form{ "@submit" => "submit($event)" }
%label.label-light %label.label-light{ ":for" => "list.id + '-title'" }
Title Title
%input.form-control{ type: "text", %input.form-control{ type: "text",
"v-model" => "title", "v-model" => "title",
"v-el:input" => true } "v-el:input" => true,
":id" => "list.id + '-title'" }
.clearfix.prepend-top-10 .clearfix.prepend-top-10
%button.btn.btn-success.pull-left{ type: "submit", %button.btn.btn-success.pull-left{ type: "submit",
":disabled" => "title === ''" } ":disabled" => "title === ''" }
......
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