mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented Discard changes button
This commit is contained in:
1 parent
681add852a
commit
28b705173e
17 files changed
+564
-43
No files matched your search
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user