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', name: 'Self-hosted',
value: 'selfhosted', value: 'selfHosted',
}, },
], ],
}, },
@ -55,12 +55,13 @@ export class GristApi implements ICredentialType {
name: 'selfHostedUrl', name: 'selfHostedUrl',
type: 'string', type: 'string',
default: '', default: '',
placeholder: 'http://localhost:8484',
required: true, 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: { displayOptions: {
show: { show: {
planType: [ planType: [
'selfhosted', 'selfHosted',
], ],
}, },
}, },

View file

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