diff options
author | Tucker Chapman <tucker.r.chapman@gmail.com> | 2019-04-05 18:50:21 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-04-05 18:50:21 +0300 |
commit | cca4a5fd37b18590767f1ff8d2e2240f06060c0d (patch) | |
tree | 64bb5d7c17ad98bc7bd1e662b1b0019416281305 /app/assets/javascripts/boards/components/new_list_dropdown.js | |
parent | e4a371582cf044dc3027f48cb923c8c7309a7b6d (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.js | 6 |
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, |