gristlabs_grist-core/app/client
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
..
aclui (core) Add dropdown conditions 2024-04-26 16:57:55 -04:00
components (core) Add custom widget gallery 2024-08-14 16:48:36 -04:00
lib (core) Add custom widget gallery 2024-08-14 16:48:36 -04:00
models (core) Add custom widget gallery 2024-08-14 16:48:36 -04:00
ui (core) AdminPanel: hide the enterprise toggle in core and grist-ee images 2024-08-19 15:51:24 -04:00
ui2018 (core) Add custom widget gallery 2024-08-14 16:48:36 -04:00
widgets (core) When getting error details for on-demand formulas, provide an explanation 2024-08-13 12:34:08 -04:00
apiconsole.ts apiconsole: allow uploads in console 2024-07-26 09:09:11 -04:00
app.css (core) Polish tutorial popups 2023-04-20 12:20:03 -04:00
app.js (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
billingMain.ts (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
browserCheck.ts (core) On mobile, only show a warning for older and unknown browsers rather than for all 2023-06-01 11:15:21 -04:00
declarations.d.ts (core) Reference and ReferenceList should trigger RightMenu to show up on Column tab and display reference toolitp, if it wasn't dismissed yet 2024-02-13 16:59:59 +01:00
DefaultHooks.ts add hooks for tweaking how downloads happen (for grist-static) (#665) 2023-09-09 14:50:32 -04:00
errorMain.ts (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
exposeModulesForTests.js (core) Improve API Console and link from Document Settings. 2024-01-29 10:08:19 -05:00
formMain.ts (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
Hooks.ts support other SQLite wrappers, and various hooks needed by grist-static (#516) 2023-05-23 15:17:28 -04:00
logo.css (core) Cleanup removing some old unused files, fixing logo.css, and removing #grist-app. 2020-10-09 17:04:09 -04:00
tsconfig.json (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00