diff --git a/packages/nodes-base/nodes/Google/Gmail/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Gmail/GenericFunctions.ts index 3dc2eabe92..8cc738cf8e 100644 --- a/packages/nodes-base/nodes/Google/Gmail/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Gmail/GenericFunctions.ts @@ -216,7 +216,12 @@ function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoa //https://developers.google.com/identity/protocols/oauth2/service-account#httprest const scopes = [ - 'https://www.googleapis.com/auth/books', + 'https://www.googleapis.com/auth/gmail.labels', + 'https://www.googleapis.com/auth/gmail.addons.current.action.compose', + 'https://www.googleapis.com/auth/gmail.addons.current.message.action', + 'https://mail.google.com/', + 'https://www.googleapis.com/auth/gmail.modify', + 'https://www.googleapis.com/auth/gmail.compose', ]; const now = moment().unix(); diff --git a/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts b/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts index 5601c259c5..158c0de9b0 100644 --- a/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts +++ b/packages/nodes-base/nodes/Google/Gmail/Gmail.node.ts @@ -66,14 +66,14 @@ export class Gmail implements INodeType { description: INodeTypeDescription = { displayName: 'Gmail', name: 'gmail', - icon: 'file:gmail.png', + icon: 'file:gmail.svg', group: ['transform'], version: 1, subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', description: 'Consume the Gmail API', defaults: { name: 'Gmail', - color: '#d93025', + color: '#4285F4', }, inputs: ['main'], outputs: ['main'], diff --git a/packages/nodes-base/nodes/Google/Gmail/gmail.png b/packages/nodes-base/nodes/Google/Gmail/gmail.png deleted file mode 100644 index 1721048070..0000000000 Binary files a/packages/nodes-base/nodes/Google/Gmail/gmail.png and /dev/null differ diff --git a/packages/nodes-base/nodes/Google/Gmail/gmail.svg b/packages/nodes-base/nodes/Google/Gmail/gmail.svg new file mode 100644 index 0000000000..7f6de6b2e9 --- /dev/null +++ b/packages/nodes-base/nodes/Google/Gmail/gmail.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file