Minor improvements to Grist Node

This commit is contained in:
Jan Oberhauser 2022-02-19 14:38:16 +01:00
parent 9d972b2fb9
commit f6001da91e
2 changed files with 6 additions and 5 deletions

View file

@ -31,7 +31,7 @@ export class GristApi implements ICredentialType {
},
{
name: 'Self-hosted',
value: 'selfhosted',
value: 'selfHosted',
},
],
},
@ -55,12 +55,13 @@ export class GristApi implements ICredentialType {
name: 'selfHostedUrl',
type: 'string',
default: '',
placeholder: 'http://localhost:8484',
required: true,
description: 'URL of your Grist instance (include http/https without /api and no trailing slash)',
description: 'URL of your Grist instance. Include http/https without /api and no trailing slash.',
displayOptions: {
show: {
planType: [
'selfhosted',
'selfHosted',
],
},
},

View file

@ -1,6 +1,6 @@
export type GristCredentials = {
apiKey: string;
planType: 'free' | 'paid' | 'selfhosted';
planType: 'free' | 'paid' | 'selfHosted';
customSubdomain?: string;
selfHostedUrl?: string;
}