diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-09-16 01:50:36 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-09-16 01:50:36 +0300 |
commit | df84a2be9adb2eeee25141588a80d4523d38675d (patch) | |
tree | d7defe25d43e41a76d9d11461cbc539ad01598c2 /client/components/rules/actions/checklistActions.js | |
parent | b3a752ef34cb1cd324f7e2b55bebef81fb2281c3 (diff) | |
download | wekan-df84a2be9adb2eeee25141588a80d4523d38675d.tar.gz wekan-df84a2be9adb2eeee25141588a80d4523d38675d.tar.bz2 wekan-df84a2be9adb2eeee25141588a80d4523d38675d.zip |
Fix lint errors.
Diffstat (limited to 'client/components/rules/actions/checklistActions.js')
-rw-r--r-- | client/components/rules/actions/checklistActions.js | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/client/components/rules/actions/checklistActions.js b/client/components/rules/actions/checklistActions.js index 0b4c2167..4b70f959 100644 --- a/client/components/rules/actions/checklistActions.js +++ b/client/components/rules/actions/checklistActions.js @@ -11,34 +11,34 @@ BlazeComponent.extendComponent({ const checklistName = this.find('#checklist-name').value; const boardId = Session.get('currentBoard'); const desc = Utils.getTriggerActionDesc(event, this); - if (actionSelected == "add") { + if (actionSelected === 'add') { const triggerId = Triggers.insert(trigger); const actionId = Actions.insert({ - actionType: "addChecklist", - "checklistName": checklistName, - "boardId": boardId, - "desc": desc + actionType: 'addChecklist', + checklistName, + boardId, + desc, }); Rules.insert({ title: ruleName, - triggerId: triggerId, - actionId: actionId, - "boardId": boardId + triggerId, + actionId, + boardId, }); } - if (actionSelected == "remove") { + if (actionSelected === 'remove') { const triggerId = Triggers.insert(trigger); const actionId = Actions.insert({ - actionType: "removeChecklist", - "checklistName": checklistName, - "boardId": boardId, - "desc": desc + actionType: 'removeChecklist', + checklistName, + boardId, + desc, }); Rules.insert({ title: ruleName, - triggerId: triggerId, - actionId: actionId, - "boardId": boardId + triggerId, + actionId, + boardId, }); } @@ -50,79 +50,79 @@ BlazeComponent.extendComponent({ const checklistName = this.find('#checklist-name2').value; const boardId = Session.get('currentBoard'); const desc = Utils.getTriggerActionDesc(event, this); - if (actionSelected == "check") { + if (actionSelected === 'check') { const triggerId = Triggers.insert(trigger); const actionId = Actions.insert({ - actionType: "checkAll", - "checklistName": checklistName, - "boardId": boardId, - "desc": desc + actionType: 'checkAll', + checklistName, + boardId, + desc, }); Rules.insert({ title: ruleName, - triggerId: triggerId, - actionId: actionId, - "boardId": boardId + triggerId, + actionId, + boardId, }); } - if (actionSelected == "uncheck") { + if (actionSelected === 'uncheck') { const triggerId = Triggers.insert(trigger); const actionId = Actions.insert({ - actionType: "uncheckAll", - "checklistName": checklistName, - "boardId": boardId, - "desc": desc + actionType: 'uncheckAll', + checklistName, + boardId, + desc, }); Rules.insert({ title: ruleName, - triggerId: triggerId, - actionId: actionId, - "boardId": boardId + triggerId, + actionId, + boardId, }); } }, 'click .js-add-check-item-action' (event) { const ruleName = this.data().ruleName.get(); const trigger = this.data().triggerVar.get(); - const checkItemName = this.find("#checkitem-name"); - const checklistName = this.find("#checklist-name3"); + const checkItemName = this.find('#checkitem-name'); + const checklistName = this.find('#checklist-name3'); const actionSelected = this.find('#check-item-action').value; const boardId = Session.get('currentBoard'); const desc = Utils.getTriggerActionDesc(event, this); - if (actionSelected == "check") { + if (actionSelected === 'check') { const triggerId = Triggers.insert(trigger); const actionId = Actions.insert({ - actionType: "checkItem", - "checklistName": checklistName, - "checkItemName": checkItemName, - "boardId": boardId, - "desc": desc + actionType: 'checkItem', + checklistName, + checkItemName, + boardId, + desc, }); Rules.insert({ title: ruleName, - triggerId: triggerId, - actionId: actionId, - "boardId": boardId + triggerId, + actionId, + boardId, }); } - if (actionSelected == "uncheck") { + if (actionSelected === 'uncheck') { const triggerId = Triggers.insert(trigger); const actionId = Actions.insert({ - actionType: "uncheckItem", - "checklistName": checklistName, - "checkItemName": checkItemName, - "boardId": boardId, - "desc": desc + actionType: 'uncheckItem', + checklistName, + checkItemName, + boardId, + desc, }); Rules.insert({ title: ruleName, - triggerId: triggerId, - actionId: actionId, - "boardId": boardId + triggerId, + actionId, + boardId, }); } }, }]; }, -}).register('checklistActions');
\ No newline at end of file +}).register('checklistActions'); |