(core) Small changes to Access Rules page to clearify behavior of table default rules

Summary:
- Rename "Add Default Rule" to "Add Table-wide Rule", and enable always.
- Rename "All Other" to "All".

Test Plan: Updated test; new behavior (for when menu option is newly enabled) only tested manually.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D4195
This commit is contained in:
Dmitry S
2024-02-21 01:00:48 -05:00
parent 219b1f3f87
commit ca990bbfe6
2 changed files with 24 additions and 6 deletions

View File

@@ -50,7 +50,8 @@ export type Tooltip =
| 'addColumnConditionalStyle'
| 'uuid'
| 'lookups'
| 'formulaColumn';
| 'formulaColumn'
| 'accessRulesTableWide';
export type TooltipContentFunc = (...domArgs: DomElementArg[]) => DomContents;
@@ -135,6 +136,9 @@ see or edit which parts of your document.')
),
...args,
),
accessRulesTableWide: (...args: DomElementArg[]) => cssTooltipContent(
dom('div', t('These rules are applied after all column rules have been processed, if applicable.'))
),
};
export interface BehavioralPromptContent {