mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Remove Segment import
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
e161f61319
commit
e2fd90bdc2
@ -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 New Issue
Block a user