Mass guide editor changes #18

Merged
Tyler merged 25 commits from guide_editor_changes into main 2026-06-15 15:37:48 +00:00
Showing only changes of commit be88434e44 - Show all commits
+9 -1
View File
@@ -1219,7 +1219,15 @@ class GuideEditor {
async createSnapshot() { async createSnapshot() {
if (!this.guideId) return; if (!this.guideId) return;
await api.snapshots.create({ guideId: this.guideId, label: 'manual' }); const label = await dialogs.promptText({
title: 'Create snapshot',
label: 'Snapshot name',
placeholder: 'manual',
});
if (label == null) return;
if (this.currentStep) await this.flushStep();
if (this.guide) await this.flushGuide();
await api.snapshots.create({ guideId: this.guideId, label: label.trim() || 'manual' });
this.onToast('Snapshot created.'); this.onToast('Snapshot created.');
} }