mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
refactor(core): new back&forward button base on workbench (#6012)
# feature: ## In Browser: - hidden back&forward button in sidebar. - back and forward is equal with `window.history.back()` `window.history.forward()` ## In Desktop: - Back and forward can be controlled through the sidebar, cmdk, and shortcut keys. - back and forward act on the currently **active** view. - buttons change disable&enable style based on current active view history # Refactor: Move app-sidebar and app-container from @affine/component to @affine/core
This commit is contained in:
@@ -182,7 +182,7 @@ export class LiveData<T = unknown> implements InteropObservable<T> {
|
||||
}
|
||||
|
||||
subscribe(
|
||||
observer: Partial<Observer<T>> | ((value: T) => void) | undefined
|
||||
observer?: Partial<Observer<T>> | ((value: T) => void) | undefined
|
||||
): Subscription {
|
||||
this.ops.next('watch');
|
||||
const subscription = this.raw.subscribe(observer);
|
||||
|
||||
Reference in New Issue
Block a user