Small improvements to Wekan-Node

This commit is contained in:
Jan Oberhauser 2020-10-13 13:01:34 +02:00
parent 23e0c08b1c
commit d3a52297f2
8 changed files with 14 additions and 44 deletions

View file

@ -66,7 +66,7 @@ export const boardFields = [
], ],
}, },
}, },
description: 'The title of the board', description: 'The title of the board.',
}, },
{ {
displayName: 'Owner', displayName: 'Owner',
@ -87,7 +87,7 @@ export const boardFields = [
], ],
}, },
}, },
description: 'The user ID in Wekan', description: 'The user ID in Wekan.',
}, },
{ {
displayName: 'Additional Fields', displayName: 'Additional Fields',

View file

@ -260,10 +260,7 @@ export const cardCommentFields = [
{ {
displayName: 'Board ID', displayName: 'Board ID',
name: 'boardId', name: 'boardId',
type: 'options', type: 'string',
typeOptions: {
loadOptionsMethod: 'getBoards',
},
default: '', default: '',
required: true, required: true,
displayOptions: { displayOptions: {
@ -330,14 +327,7 @@ export const cardCommentFields = [
{ {
displayName: 'Comment ID', displayName: 'Comment ID',
name: 'commentId', name: 'commentId',
type: 'options', type: 'string',
typeOptions: {
loadOptionsMethod: 'getComments',
loadOptionsDependsOn: [
'boardId',
'cardId',
],
},
default: '', default: '',
required: true, required: true,
displayOptions: { displayOptions: {

View file

@ -115,7 +115,7 @@ export const cardFields = [
], ],
}, },
}, },
description: 'The title of the card', description: 'The title of the card.',
}, },
{ {
displayName: 'Swimlane ID', displayName: 'Swimlane ID',
@ -139,7 +139,7 @@ export const cardFields = [
], ],
}, },
}, },
description: 'The swimlane ID of the new card', description: 'The swimlane ID of the new card.',
}, },
{ {
displayName: 'Author ID', displayName: 'Author ID',
@ -160,7 +160,7 @@ export const cardFields = [
], ],
}, },
}, },
description: 'The author ID', description: 'The author ID.',
}, },
{ {
displayName: 'Additional Fields', displayName: 'Additional Fields',
@ -334,14 +334,7 @@ export const cardFields = [
{ {
displayName: 'Card ID', displayName: 'Card ID',
name: 'cardId', name: 'cardId',
type: 'options', type: 'string',
typeOptions: {
loadOptionsMethod: 'getCards',
loadOptionsDependsOn: [
'boardId',
'listId',
],
},
default: '', default: '',
required: true, required: true,
displayOptions: { displayOptions: {

View file

@ -156,7 +156,7 @@ export const checklistFields = [
}, },
}, },
default: [], default: [],
description: 'Items to be added to the checklist', description: 'Items to be added to the checklist.',
}, },
// ---------------------------------- // ----------------------------------

View file

@ -242,14 +242,7 @@ export const checklistItemFields = [
{ {
displayName: 'Checklist ID', displayName: 'Checklist ID',
name: 'checklistId', name: 'checklistId',
type: 'options', type: 'string',
typeOptions: {
loadOptionsMethod: 'getChecklists',
loadOptionsDependsOn: [
'boardId',
'cardId',
],
},
default: '', default: '',
required: true, required: true,
displayOptions: { displayOptions: {

View file

@ -86,7 +86,7 @@ export const listFields = [
], ],
}, },
}, },
description: 'The title of the list' description: 'The title of the list.'
}, },
// ---------------------------------- // ----------------------------------
@ -165,13 +165,7 @@ export const listFields = [
{ {
displayName: 'List ID', displayName: 'List ID',
name: 'listId', name: 'listId',
type: 'options', type: 'string',
typeOptions: {
loadOptionsMethod: 'getLists',
loadOptionsDependsOn: [
'boardId',
],
},
default: '', default: '',
required: true, required: true,
displayOptions: { displayOptions: {
@ -209,7 +203,7 @@ export const listFields = [
], ],
}, },
}, },
description: 'ID of the board where the lists are in' description: 'ID of the board where the lists are in.'
}, },
{ {
displayName: 'Return All', displayName: 'Return All',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 941 B