summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listHeader.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/components/lists/listHeader.js')
-rw-r--r--client/components/lists/listHeader.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js
index e34d23fd..4f5fc3a0 100644
--- a/client/components/lists/listHeader.js
+++ b/client/components/lists/listHeader.js
@@ -49,45 +49,6 @@ Template.listActionPopup.events({
},
});
-
-BlazeComponent.extendComponent({
- events() {
- return [{
- 'submit': (evt) => {
- evt.preventDefault();
- const jsonData = $(evt.currentTarget).find('textarea').val();
- const firstCardDom = $(`#js-list-${this.currentData()._id} .js-minicard:first`).get(0);
- const sortIndex = Utils.calculateIndex(null, firstCardDom).base;
- let trelloCard;
- try {
- trelloCard = JSON.parse(jsonData);
- } catch (e) {
- this.setError('error-json-malformed');
- return;
- }
- Meteor.call('importTrelloCard', trelloCard, this.currentData()._id, sortIndex,
- (error, response) => {
- if (error) {
- this.setError(error.error);
- } else {
- Filter.addException(response);
- Popup.close();
- }
- }
- );
- },
- }];
- },
-
- onCreated() {
- this.error = new ReactiveVar('');
- },
-
- setError(error) {
- this.error.set(error);
- },
-}).register('listImportCardPopup');
-
Template.listMoveCardsPopup.events({
'click .js-select-list'() {
const fromList = Template.parentData(2).data;