mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(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:
parent
7aa83858bd
commit
4670d60c01
@ -12,6 +12,8 @@ interface Options {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function buildTutorialCard(owner: IDisposableOwner, options: Options) {
|
export function buildTutorialCard(owner: IDisposableOwner, options: Options) {
|
||||||
|
if (shouldHideUiElement('templates')) { return null; }
|
||||||
|
|
||||||
const {app} = options;
|
const {app} = options;
|
||||||
const dismissed = app.dismissedPopup('tutorialFirstCard');
|
const dismissed = app.dismissedPopup('tutorialFirstCard');
|
||||||
owner.autoDispose(dismissed);
|
owner.autoDispose(dismissed);
|
||||||
|
Loading…
Reference in New Issue
Block a user