mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Show usage banners in doc menu of free team sites
Summary: Also fixes a minor CSS regression in UserManager where the link to add a team member wasn't shown on a separate row. Test Plan: Browser tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3444
This commit is contained in:
@@ -3,6 +3,12 @@ export interface SnapshotWindow {
|
||||
unit: 'days' | 'month' | 'year';
|
||||
}
|
||||
|
||||
// Information about the product associated with an org or orgs.
|
||||
export interface Product {
|
||||
name: string;
|
||||
features: Features;
|
||||
}
|
||||
|
||||
// A product is essentially a list of flags and limits that we may enforce/support.
|
||||
export interface Features {
|
||||
vanityDomain?: boolean; // are user-selected domains allowed (unenforced) (default: true)
|
||||
@@ -60,3 +66,8 @@ export interface Features {
|
||||
export function canAddOrgMembers(features: Features): boolean {
|
||||
return features.maxWorkspacesPerOrg !== 1;
|
||||
}
|
||||
|
||||
// Returns true if `product` is free.
|
||||
export function isFreeProduct(product: Product): boolean {
|
||||
return ['starter', 'teamFree'].includes(product.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user