(core) run survey for new users only when a survey doc is set

Summary:
stop providing a default document id DOC_ID_NEW_USER_INFO for
surveying, and don't show survey if a document id is not available.

Test Plan: existing tests pass; grist-core checked

Reviewers: georgegevoian

Reviewed By: georgegevoian

Subscribers: jarek

Differential Revision: https://phab.getgrist.com/D3225
This commit is contained in:
Paul Fitzpatrick
2022-01-19 17:16:16 -05:00
parent 0c80547e0d
commit 7440485ebe
4 changed files with 11 additions and 3 deletions

View File

@@ -479,6 +479,9 @@ export interface GristLoadConfig {
// If custom widget list is available.
enableWidgetRepository?: boolean;
// Whether there is somewhere for survey data to go.
survey?: boolean;
}
// Acceptable org subdomains are alphanumeric (hyphen also allowed) and of