Implemented Discard changes button

This commit is contained in:
patben8 committed 2026-10-01 10:54:27 +02:00
1 parent 681add852a
commit 28b705173e
17 files changed
+564 -43

No files matched your search

+2
View File
@@ -758,6 +758,8 @@ export const api = {
patchPrefs: (patch: Record<string, unknown>) =>
send<Record<string, unknown>>('PATCH', '/api/prefs', patch),
save: () => send<SaveResult>('POST', '/api/save'),
/** Drop every unsaved edit; the library re-reads itself from disk. */
discard: () => send<EditState>('POST', '/api/discard'),
// ---- version history ----
history: () => getJSON<HistoryEntry[]>('/api/history'),