diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-15 18:10:02 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-17 17:17:39 +0100 |
commit | 7e7673d55ec4211b0c9817f099f1172b2c416b95 (patch) | |
tree | 3ed24dc92111cc4a64cf29880f5aa705fc3f8aa4 /app/views/projects/boards | |
parent | d4387bd31799b78f8926ab94aa50656fd5eef45b (diff) | |
download | gitlab-ce-7e7673d55ec4211b0c9817f099f1172b2c416b95.tar.gz |
Fixed bug when moving lists around & then deleting
Diffstat (limited to 'app/views/projects/boards')
-rw-r--r-- | app/views/projects/boards/components/_board.html.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/projects/boards/components/_board.html.haml b/app/views/projects/boards/components/_board.html.haml index 16a46739122..55ae99be50d 100644 --- a/app/views/projects/boards/components/_board.html.haml +++ b/app/views/projects/boards/components/_board.html.haml @@ -1,9 +1,11 @@ %board{ "inline-template" => true, "v-cloak" => true, "v-for" => "list in state.lists | orderBy 'position'", + "v-ref:board" => true, ":list" => "list", ":disabled" => "disabled", - ":issue-link-base" => "issueLinkBase" } + ":issue-link-base" => "issueLinkBase", + "track-by" => "_uid" } .board{ ":class" => "{ 'is-draggable': !isPreset }", ":data-id" => "list.id" } .board-inner @@ -15,6 +17,7 @@ {{ list.issues.length }} - if can?(current_user, :admin_list, @project) %board-delete{ "inline-template" => true, + ":list" => "list", "v-if" => "!isPreset && list.id" } %button.board-delete.has-tooltip.pull-right{ type: "button", title: "Delete list", "aria-label" => "Delete list", data: { placement: "bottom" }, "@click.stop" => "deleteBoard" } = icon("trash") |