Added option to connect to self-hosted Grist instance.

This commit is contained in:
Thorsten Freitag
2022-02-19 22:29:28 +11:00
parent 1ea57eff5d
commit 134845bb08
4 changed files with 32 additions and 6 deletions

View File

@@ -29,6 +29,10 @@ export class GristApi implements ICredentialType {
name: 'Paid',
value: 'paid',
},
{
name: 'Self-hosted',
value: 'selfhosted',
},
],
},
{
@@ -46,5 +50,20 @@ export class GristApi implements ICredentialType {
},
},
},
{
displayName: 'Self-hosted URL',
name: 'selfHostedUrl',
type: 'string',
default: '',
required: true,
description: 'URL of your Grist instance (include http/https without /api and no trailing slash)',
displayOptions: {
show: {
planType: [
'selfhosted',
],
},
},
},
];
}