mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Move Google Task title to top level (#718)
This commit is contained in:
parent
fe56c8778d
commit
9c58ca8f77
|
@ -102,6 +102,7 @@ export class GoogleTasks implements INodeType {
|
||||||
body = {};
|
body = {};
|
||||||
//https://developers.google.com/tasks/v1/reference/tasks/insert
|
//https://developers.google.com/tasks/v1/reference/tasks/insert
|
||||||
const taskId = this.getNodeParameter('task', i) as string;
|
const taskId = this.getNodeParameter('task', i) as string;
|
||||||
|
body.title = this.getNodeParameter('title', i) as string;
|
||||||
const additionalFields = this.getNodeParameter(
|
const additionalFields = this.getNodeParameter(
|
||||||
'additionalFields',
|
'additionalFields',
|
||||||
i
|
i
|
||||||
|
@ -121,11 +122,6 @@ export class GoogleTasks implements INodeType {
|
||||||
if (additionalFields.notes) {
|
if (additionalFields.notes) {
|
||||||
body.notes = additionalFields.notes as string;
|
body.notes = additionalFields.notes as string;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalFields.title) {
|
|
||||||
body.title = additionalFields.title as string;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (additionalFields.dueDate) {
|
if (additionalFields.dueDate) {
|
||||||
body.dueDate = additionalFields.dueDate as string;
|
body.dueDate = additionalFields.dueDate as string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,13 @@ export const taskFields = [
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Title',
|
||||||
|
name: 'title',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Title of the task.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Additional Fields',
|
displayName: 'Additional Fields',
|
||||||
name: 'additionalFields',
|
name: 'additionalFields',
|
||||||
|
@ -146,13 +153,7 @@ export const taskFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Current status of the task.',
|
description: 'Current status of the task.',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
displayName: 'Title',
|
|
||||||
name: 'title',
|
|
||||||
type: 'string',
|
|
||||||
default: '',
|
|
||||||
description: 'Title of the task.',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
Loading…
Reference in a new issue