(core) Hide tutorial card with templates

Summary: Hides the tutorial card if GRIST_HIDE_UI_ELEMENTS includes "templates".

Test Plan: Tested manually.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3850
This commit is contained in:
George Gevoian 2023-04-04 16:58:54 -04:00
parent 7aa83858bd
commit 4670d60c01

View File

@ -12,6 +12,8 @@ interface Options {
}
export function buildTutorialCard(owner: IDisposableOwner, options: Options) {
if (shouldHideUiElement('templates')) { return null; }
const {app} = options;
const dismissed = app.dismissedPopup('tutorialFirstCard');
owner.autoDispose(dismissed);