gristlabs_grist-core/stubs/app/client/ui
Jordi Gutiérrez Hermoso 54502280de (core) AdminPanel: hide the enterprise toggle in core and grist-ee images
Summary:
In the pure OSS `grist-oss` image, the `ActivationPage` module from
stubs is used, as the `ext` code is completely missing. We can easily
just always return `false` here.

In the case when the `ext` directory exists, this may mean we're in
the standard `grist` image or the `grist-ee` image. The latter is
distinguished by having `GRIST_FORCE_ENABLE_ENTERPRISE` so we check if
that's on, and hide the toggle accordingly if so.

Test Plan:
Use these changes to build the three Docker images
(`grist-oss`, `grist`, and `grist-ee`) and verify that only `grist`
shows the toggle.

Reviewers: jarek

Reviewed By: jarek

Subscribers: jarek

Differential Revision: https://phab.getgrist.com/D4321
2024-08-19 15:51:24 -04:00
..
ActivationPage.ts (core) AdminPanel: hide the enterprise toggle in core and grist-ee images 2024-08-19 15:51:24 -04:00
BillingPage.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
ChangePasswordDialog.ts (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00
CustomThemes.ts (core) Configure more comprehensive eslint rules for Typescript 2021-04-26 18:54:55 -04:00
DeleteAccountDialog.ts (core) Delete my account button 2023-09-27 14:49:23 +02:00
MFAConfig.ts (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00
ProductUpgrades.ts Create team site for self-hosted instances (#903) 2024-04-15 00:55:57 -07:00