mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
⚡ Minor improvements to Trello-Node
This commit is contained in:
parent
4c075db26c
commit
98edb353d4
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
INodeProperties,
|
||||
} from "n8n-workflow";
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const attachmentOperations = [
|
||||
// ----------------------------------
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
INodeProperties,
|
||||
} from "n8n-workflow";
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const boardOperations = [
|
||||
// ----------------------------------
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
INodeProperties,
|
||||
} from "n8n-workflow";
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const cardOperations = [
|
||||
// ----------------------------------
|
||||
|
|
|
@ -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
|
||||
// ----------------------------------
|
||||
|
|
Loading…
Reference in a new issue