From 98edb353d4ac7dd0914a40968f8caaae982f7e6f Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 25 Aug 2020 08:27:26 +0200 Subject: [PATCH] :zap: Minor improvements to Trello-Node --- .../nodes/Trello/AttachmentDescription.ts | 2 +- .../nodes/Trello/BoardDescription.ts | 2 +- .../nodes/Trello/CardCommentDescription.ts | 28 +++++++++---------- .../nodes/Trello/CardDescription.ts | 2 +- .../nodes-base/nodes/Trello/Trello.node.ts | 6 ++-- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/packages/nodes-base/nodes/Trello/AttachmentDescription.ts b/packages/nodes-base/nodes/Trello/AttachmentDescription.ts index 9b473a9a65..1fa0bc58de 100644 --- a/packages/nodes-base/nodes/Trello/AttachmentDescription.ts +++ b/packages/nodes-base/nodes/Trello/AttachmentDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties, -} from "n8n-workflow"; +} from 'n8n-workflow'; export const attachmentOperations = [ // ---------------------------------- diff --git a/packages/nodes-base/nodes/Trello/BoardDescription.ts b/packages/nodes-base/nodes/Trello/BoardDescription.ts index d9b0eead48..9e75de40ce 100644 --- a/packages/nodes-base/nodes/Trello/BoardDescription.ts +++ b/packages/nodes-base/nodes/Trello/BoardDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties, -} from "n8n-workflow"; +} from 'n8n-workflow'; export const boardOperations = [ // ---------------------------------- diff --git a/packages/nodes-base/nodes/Trello/CardCommentDescription.ts b/packages/nodes-base/nodes/Trello/CardCommentDescription.ts index 1ce873f16e..6c4f38fcca 100644 --- a/packages/nodes-base/nodes/Trello/CardCommentDescription.ts +++ b/packages/nodes-base/nodes/Trello/CardCommentDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties, -} from "n8n-workflow"; +} from 'n8n-workflow'; export const cardCommentOperations = [ { @@ -16,29 +16,29 @@ export const cardCommentOperations = [ }, options: [ { - name: 'Add', - value: 'add', - description: 'Add a comment to a card', + name: 'Create', + value: 'create', + description: 'Create a comment on a card', }, { - name: 'Revove', - value: 'remove', - description: 'Remove a comment from a card', + name: 'Delete', + value: 'delete', + description: 'Delete a comment from a card', }, { name: 'Update', value: 'update', - description: 'Update a comment in a card', + description: 'Update a comment on a card', }, ], - default: 'add', + default: 'create', description: 'The operation to perform.', }, ] as INodeProperties[]; export const cardCommentFields = [ // ---------------------------------- - // cardComment:add + // cardComment:create // ---------------------------------- { displayName: 'Card ID', @@ -49,7 +49,7 @@ export const cardCommentFields = [ displayOptions: { show: { operation: [ - 'add', + 'create', ], resource: [ 'cardComment', @@ -67,7 +67,7 @@ export const cardCommentFields = [ displayOptions: { show: { operation: [ - 'add', + 'create', ], resource: [ 'cardComment', @@ -89,7 +89,7 @@ export const cardCommentFields = [ displayOptions: { show: { operation: [ - 'remove', + 'delete', ], resource: [ 'cardComment', @@ -107,7 +107,7 @@ export const cardCommentFields = [ displayOptions: { show: { operation: [ - 'remove', + 'delete', ], resource: [ 'cardComment', diff --git a/packages/nodes-base/nodes/Trello/CardDescription.ts b/packages/nodes-base/nodes/Trello/CardDescription.ts index 0352e3e2d0..9a9661023e 100644 --- a/packages/nodes-base/nodes/Trello/CardDescription.ts +++ b/packages/nodes-base/nodes/Trello/CardDescription.ts @@ -1,6 +1,6 @@ import { INodeProperties, -} from "n8n-workflow"; +} from 'n8n-workflow'; export const cardOperations = [ // ---------------------------------- diff --git a/packages/nodes-base/nodes/Trello/Trello.node.ts b/packages/nodes-base/nodes/Trello/Trello.node.ts index 66ba233ddb..c39b51a6c1 100644 --- a/packages/nodes-base/nodes/Trello/Trello.node.ts +++ b/packages/nodes-base/nodes/Trello/Trello.node.ts @@ -276,9 +276,9 @@ export class Trello implements INodeType { } else if (resource === 'cardComment') { - if (operation === 'add') { + if (operation === 'create') { // ---------------------------------- - // add + // create // ---------------------------------- const cardId = this.getNodeParameter('cardId', i) as string; @@ -290,7 +290,7 @@ export class Trello implements INodeType { endpoint = `cards/${cardId}/actions/comments`; - } else if (operation === 'remove') { + } else if (operation === 'delete') { // ---------------------------------- // delete // ----------------------------------