forked from mystiq/hydrogen-web
Remove Segment import
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
e161f61319
commit
e2fd90bdc2
1 changed files with 2 additions and 3 deletions
|
@ -81,9 +81,9 @@ export class RoomGridViewModel extends ViewModel {
|
|||
_switchToRoom(roomId) {
|
||||
const detailsShown = !!this.navigation.path.get("details")?.value;
|
||||
let path = this.navigation.path.until("rooms");
|
||||
path = path.with(new Segment("room", roomId));
|
||||
path = path.with(this.navigation.segment("room", roomId));
|
||||
if (detailsShown) {
|
||||
path = path.with(new Segment("details", true));
|
||||
path = path.with(this.navigation.segment("details", true));
|
||||
}
|
||||
this.navigation.applyPath(path);
|
||||
}
|
||||
|
@ -189,7 +189,6 @@ export class RoomGridViewModel extends ViewModel {
|
|||
|
||||
import {createNavigation} from "../navigation/index.js";
|
||||
import {ObservableValue} from "../../observable/ObservableValue.js";
|
||||
import { Segment } from "../navigation/Navigation.js";
|
||||
|
||||
export function tests() {
|
||||
class RoomVMMock {
|
||||
|
|
Loading…
Reference in a new issue