diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-01-24 15:16:13 +0100 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-01-24 20:51:38 +0100 |
commit | 416b17062e57f215206e93a85b02ef9eb1ab4902 (patch) | |
tree | fda49dbeb9edeb91a5b4916abe45c849e7b1f540 /client/components/swimlanes/swimlanes.js | |
parent | dd88eb4cc191a06f7eb84213b026dfb93546f245 (diff) | |
download | wekan-416b17062e57f215206e93a85b02ef9eb1ab4902.tar.gz wekan-416b17062e57f215206e93a85b02ef9eb1ab4902.tar.bz2 wekan-416b17062e57f215206e93a85b02ef9eb1ab4902.zip |
Remove the 'Add Swimlane' entry and replace it by a plus sign
Still need to create the swimlane right after the one that has been
created
Diffstat (limited to 'client/components/swimlanes/swimlanes.js')
-rw-r--r-- | client/components/swimlanes/swimlanes.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js index a7743ec7..71317714 100644 --- a/client/components/swimlanes/swimlanes.js +++ b/client/components/swimlanes/swimlanes.js @@ -175,33 +175,6 @@ BlazeComponent.extendComponent({ }, }).register('addListForm'); -BlazeComponent.extendComponent({ - // Proxy - open() { - this.childComponents('inlinedForm')[0].open(); - }, - - events() { - return [{ - submit(evt) { - evt.preventDefault(); - let titleInput = this.find('.swimlane-name-input'); - const title = titleInput.value.trim(); - if (title) { - Swimlanes.insert({ - title, - boardId: Session.get('currentBoard'), - sort: $('.swimlane').length, - }); - - titleInput.value = ''; - titleInput.focus(); - } - }, - }]; - }, -}).register('addSwimlaneForm'); - Template.swimlane.helpers({ canSeeAddList() { return Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly(); |