mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Minor change to Google Calendar-Node
This commit is contained in:
parent
ff39be5ea7
commit
f45a7cb031
|
@ -316,7 +316,7 @@ export const eventFields = [
|
||||||
loadOptionsMethod: 'getTimezones',
|
loadOptionsMethod: 'getTimezones',
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The timezone the event will have set. By default events are schedule on n8n timezone '
|
description: 'The timezone the event will have set. By default events are schedule on timezone set in n8n.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Visibility',
|
displayName: 'Visibility',
|
||||||
|
@ -333,16 +333,16 @@ export const eventFields = [
|
||||||
value: 'default',
|
value: 'default',
|
||||||
description: ' Uses the default visibility for events on the calendar.',
|
description: ' Uses the default visibility for events on the calendar.',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'Public',
|
|
||||||
value: 'public',
|
|
||||||
description: 'The event is public and event details are visible to all readers of the calendar.',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'Private',
|
name: 'Private',
|
||||||
value: 'private',
|
value: 'private',
|
||||||
description: 'The event is private and only event attendees may view event details.',
|
description: 'The event is private and only event attendees may view event details.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Public',
|
||||||
|
value: 'public',
|
||||||
|
description: 'The event is public and event details are visible to all readers of the calendar.',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
default: 'default',
|
default: 'default',
|
||||||
description: 'Visibility of the event.',
|
description: 'Visibility of the event.',
|
||||||
|
|
|
@ -89,7 +89,7 @@ export class GoogleCalendar implements INodeType {
|
||||||
async getColors(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getColors(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const { calendar } = await googleApiRequest.call(this, 'GET', '/calendar/v3/colors');
|
const { calendar } = await googleApiRequest.call(this, 'GET', '/calendar/v3/colors');
|
||||||
for (let key of Object.keys(calendar)) {
|
for (const key of Object.keys(calendar)) {
|
||||||
const colorName = calendar[key].background;
|
const colorName = calendar[key].background;
|
||||||
const colorId = key;
|
const colorId = key;
|
||||||
returnData.push({
|
returnData.push({
|
||||||
|
|
Loading…
Reference in a new issue