summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/components/new_list_dropdown.js.es6
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-08-12 11:37:47 +0100
committerPhil Hughes <me@iamphill.com>2016-08-17 17:17:39 +0100
commitcd6285d244c384b44246d2c4afa4dc738c2cc4d9 (patch)
tree8a7be99921089ddcfe6823ed116a3926062c6112 /app/assets/javascripts/boards/components/new_list_dropdown.js.es6
parent86a6d4d8c55a9dd5e1b7a413a29dcc84a3d5540b (diff)
downloadgitlab-ce-cd6285d244c384b44246d2c4afa4dc738c2cc4d9.tar.gz
Removes checkmarks from new list dropdown when deleting list
Diffstat (limited to 'app/assets/javascripts/boards/components/new_list_dropdown.js.es6')
-rw-r--r--app/assets/javascripts/boards/components/new_list_dropdown.js.es63
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/new_list_dropdown.js.es6 b/app/assets/javascripts/boards/components/new_list_dropdown.js.es6
index c2273d8f7d9..e02591e4bf6 100644
--- a/app/assets/javascripts/boards/components/new_list_dropdown.js.es6
+++ b/app/assets/javascripts/boards/components/new_list_dropdown.js.es6
@@ -16,7 +16,7 @@ $(() => {
const active = BoardsStore.findList('title', label.title),
$li = $('<li />',),
$a = $('<a />', {
- class: (active ? 'is-active' : ''),
+ class: (active ? `is-active js-board-list-${active.id}` : ''),
text: label.title,
href: '#'
}),
@@ -39,6 +39,7 @@ $(() => {
BoardsStore.new({
title: label.title,
position: BoardsStore.state.lists.length - 1,
+ list_type: 'label',
label: {
id: label.id,
title: label.title,