mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-07 01:58:18 +01:00
Merge suggestion from Github
This commit is contained in:
commit
bc8e6237d6
@ -50,7 +50,7 @@ export class RightPanelViewModel extends ViewModel {
|
|||||||
_hookUpdaterToSegment(segment, viewmodel, argCreator, failCallback) {
|
_hookUpdaterToSegment(segment, viewmodel, argCreator, failCallback) {
|
||||||
const observable = this.navigation.observe(segment);
|
const observable = this.navigation.observe(segment);
|
||||||
const updater = this._setupUpdater(segment, viewmodel, argCreator, failCallback);
|
const updater = this._setupUpdater(segment, viewmodel, argCreator, failCallback);
|
||||||
this.track(observable.subscribe(() => updater()));
|
this.track(observable.subscribe(updater));
|
||||||
}
|
}
|
||||||
|
|
||||||
_setupUpdater(segment, viewmodel, argCreator, failCallback) {
|
_setupUpdater(segment, viewmodel, argCreator, failCallback) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user