mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: history replace
This commit is contained in:
committed by
Gabriel Horner
parent
a345f434e3
commit
acd41f71dd
@@ -33,7 +33,7 @@ export class TLHistory<S extends TLShape = TLShape, K extends TLEventMap = TLEve
|
||||
@action persist = (replace = false) => {
|
||||
if (this.isPaused || this.creating) return
|
||||
this.app.pages.forEach(page => page.bump()) // Is it ok here?
|
||||
this.app.notify('persist', null)
|
||||
this.app.notify('persist', {replace})
|
||||
}
|
||||
|
||||
@action undo = () => {
|
||||
|
||||
@@ -155,7 +155,7 @@ export type TLSubscriptionEvent =
|
||||
}
|
||||
| {
|
||||
event: 'persist'
|
||||
info: null
|
||||
info: { replace: boolean }
|
||||
}
|
||||
| {
|
||||
event: 'save'
|
||||
|
||||
Reference in New Issue
Block a user