Prompt to start recording for library guides
This commit is contained in:
@@ -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),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user