Prompt to start recording for library guides
Template tests / tests (push) Failing after 12m49s
Template tests / tests (pull_request) Has been cancelled

This commit is contained in:
2026-06-13 14:05:10 -05:00
parent 85b1f6f143
commit e46f01885b
2 changed files with 28 additions and 8 deletions
+6 -3
View File
@@ -693,13 +693,16 @@ function showInfoDialog(title, bodyText) {
});
}
function showRecordingReminder() {
function showRecordingReminder({
actionLabel = 'Continue',
headline = 'StepForge will hide after you continue.',
} = {}) {
return new Promise((resolve) => {
const { close } = openModal({
title: 'Before recording starts',
body: el('div.recording-notice', {},
el('div.recording-notice__badge', {}, 'Recording tip'),
el('div.recording-notice__title', {}, 'StepForge will hide after you continue.'),
el('div.recording-notice__title', {}, headline),
el('div.recording-notice__text', {},
'When you want to pause or stop, use the red tray icon in the system tray.',
),
@@ -707,7 +710,7 @@ function showRecordingReminder() {
footer: [
el('button.primary', {
onClick: () => { close(); resolve(true); },
}, 'Continue'),
}, actionLabel),
],
onClose: () => resolve(false),
});