(core) Makes GristTooltips translatable

Test Plan: Should no break anything

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3785
This commit is contained in:
Cyprien P
2023-01-31 17:35:46 +01:00
parent ab2e2ef402
commit ef0a55ced1
4 changed files with 107 additions and 62 deletions

View File

@@ -90,7 +90,7 @@ export class BehavioralPromptsManager extends Disposable {
const {hideArrow = false, onDispose, popupOptions} = options;
const {title, content} = GristBehavioralPrompts[prompt];
const ctl = showBehavioralPrompt(refElement, title, content(), {
const ctl = showBehavioralPrompt(refElement, title(), content(), {
onClose: (dontShowTips) => {
if (dontShowTips) { this._dontShowTips(); }
this._markAsSeen(prompt);