diff options
author | Phil Hughes <me@iamphill.com> | 2016-10-05 14:27:29 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-10-06 11:00:01 +0100 |
commit | a68f1fdd2975a9e7cab39ab7d40e3eae2cc676db (patch) | |
tree | 2fad4aaa6507f0fe6bda595fede36ba03396cbd8 /app/views/projects/boards/components | |
parent | b9ede4f1a5aa213f0342daff5e7281758e989a8e (diff) | |
download | gitlab-ce-a68f1fdd2975a9e7cab39ab7d40e3eae2cc676db.tar.gz |
Fix form not re-enabling thanks to jQuery
Stop issue being dragged if it doesn't have an ID
Diffstat (limited to 'app/views/projects/boards/components')
-rw-r--r-- | app/views/projects/boards/components/_board.html.haml | 3 | ||||
-rw-r--r-- | app/views/projects/boards/components/_card.html.haml | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/boards/components/_board.html.haml b/app/views/projects/boards/components/_board.html.haml index 4d7d8319204..26b2236b581 100644 --- a/app/views/projects/boards/components/_board.html.haml +++ b/app/views/projects/boards/components/_board.html.haml @@ -54,7 +54,8 @@ ":id" => "list.id + '-title'" } .clearfix.prepend-top-10 %button.btn.btn-success.pull-left{ type: "submit", - ":disabled" => "title === ''" } + ":disabled" => "title === ''", + "v-el:submit-button" => true } Submit issue %button.btn.btn-default.pull-right{ type: "button", "@click" => "cancel" } diff --git a/app/views/projects/boards/components/_card.html.haml b/app/views/projects/boards/components/_card.html.haml index 25701b0a99e..f15c87c8185 100644 --- a/app/views/projects/boards/components/_card.html.haml +++ b/app/views/projects/boards/components/_card.html.haml @@ -7,7 +7,7 @@ ":issue-link-base" => "issueLinkBase", ":disabled" => "disabled", "track-by" => "id" } - %li.card{ ":class" => "{ 'user-can-drag': !disabled }", + %li.card{ ":class" => "{ 'user-can-drag': !disabled && issue.id, 'is-disabled': disabled || !issue.id }", ":index" => "index" } %h4.card-title = icon("eye-slash", class: "confidential-icon", "v-if" => "issue.confidential") |