gristlabs_grist-core/stubs/app
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
..
client (core) AdminPanel: hide the enterprise toggle in core and grist-ee images 2024-08-19 15:51:24 -04:00
common (core) show package.json version when hovering on Grist icon in grist-core 2022-10-12 16:02:01 -04:00
server config: remove all async/await around config read functions 2024-07-18 14:32:46 -04:00
tsconfig.json (core) fix inconsistent name of directory for DocUsageBanner.ts 2022-05-31 16:42:29 -07:00