Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTucker Chapman <tucker.r.chapman@gmail.com>2019-04-05 18:50:21 +0300
committerPhil Hughes <me@iamphill.com>2019-04-05 18:50:21 +0300
commitcca4a5fd37b18590767f1ff8d2e2240f06060c0d (patch)
tree64bb5d7c17ad98bc7bd1e662b1b0019416281305 /app/assets/javascripts/boards/components/new_list_dropdown.js
parente4a371582cf044dc3027f48cb923c8c7309a7b6d (diff)
Add checkbox to choose to create new list when creating new label
Diffstat (limited to 'app/assets/javascripts/boards/components/new_list_dropdown.js')
-rw-r--r--app/assets/javascripts/boards/components/new_list_dropdown.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/components/new_list_dropdown.js b/app/assets/javascripts/boards/components/new_list_dropdown.js
index 10577da9305..a5ed695af35 100644
--- a/app/assets/javascripts/boards/components/new_list_dropdown.js
+++ b/app/assets/javascripts/boards/components/new_list_dropdown.js
@@ -8,7 +8,11 @@ import boardsStore from '../stores/boards_store';
$(document)
.off('created.label')
- .on('created.label', (e, label) => {
+ .on('created.label', (e, label, addNewList) => {
+ if (!addNewList) {
+ return;
+ }
+
boardsStore.new({
title: label.title,
position: boardsStore.state.lists.length - 2,