diff options
author | Justin Reynolds <justinr1234@gmail.com> | 2019-08-22 16:05:41 -0500 |
---|---|---|
committer | Justin Reynolds <justinr1234@gmail.com> | 2019-08-22 16:05:41 -0500 |
commit | 9d8a38f3240bbcf8734d0860db5a6ad1e19562a8 (patch) | |
tree | 3521145359ea51312b0d3bb991cb40e1adeeefde /client/components/import | |
parent | 2c78aab3dc91ee276bfb5e4717ada72dc84ca3b0 (diff) | |
download | wekan-9d8a38f3240bbcf8734d0860db5a6ad1e19562a8.tar.gz wekan-9d8a38f3240bbcf8734d0860db5a6ad1e19562a8.tar.bz2 wekan-9d8a38f3240bbcf8734d0860db5a6ad1e19562a8.zip |
Fixes #2638 importing trello
Diffstat (limited to 'client/components/import')
-rw-r--r-- | client/components/import/import.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/client/components/import/import.js b/client/components/import/import.js index 62c7e525..6368885b 100644 --- a/client/components/import/import.js +++ b/client/components/import/import.js @@ -211,22 +211,20 @@ BlazeComponent.extendComponent({ this.parentComponent().nextStep(); }, - onMapMember(evt) { - const memberToMap = this.currentData(); - if (memberToMap.wekan) { - // todo xxx ask for confirmation? - this.unmapMember(memberToMap.id); - } else { - this.setSelectedMember(memberToMap.id); - Popup.open('importMapMembersAdd')(evt); - } - }, - events() { return [ { submit: this.onSubmit, - 'click .js-select-member': this.onMapMember, + 'click .js-select-member'(evt) { + const memberToMap = this.currentData(); + if (memberToMap.wekan) { + // todo xxx ask for confirmation? + this.unmapMember(memberToMap.id); + } else { + this.setSelectedMember(memberToMap.id); + Popup.open('importMapMembersAdd')(evt); + } + }, }, ]; }, |