mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
feat(editor): replace slot with rxjs subject (#10768)
This commit is contained in:
@@ -732,7 +732,7 @@ export class StarterDebugMenu extends ShadowlessElement {
|
||||
}
|
||||
|
||||
override firstUpdated() {
|
||||
this.doc.slots.historyUpdated.on(() => {
|
||||
this.doc.slots.historyUpdated.subscribe(() => {
|
||||
this._canUndo = this.doc.canUndo;
|
||||
this._canRedo = this.doc.canRedo;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user