From 3620bb27431b78b6406cde382efc87d714aaff59 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Thu, 6 Feb 2025 11:00:09 +0100 Subject: [PATCH] Make sure "new room" goes to new "create" landing page, not "createroom" --- src/components/Home.vue | 2 +- src/components/Login.vue | 2 +- src/components/ProfileInfoPopup.vue | 2 +- src/components/RoomInfoBottomSheet.vue | 2 +- src/components/RoomList.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Home.vue b/src/components/Home.vue index adbee17..1fcceb4 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -67,7 +67,7 @@ export default { }, createRoom() { - this.$navigation.push({ name: "CreateRoom" }); + this.$navigation.push({ name: "Create" }); }, }, }; diff --git a/src/components/Login.vue b/src/components/Login.vue index 94a6742..a5696ab 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -222,7 +222,7 @@ export default { } }, handleCreateRoom() { - this.$navigation.push({ name: "CreateRoom" }); + this.$navigation.push({ name: "Create" }); }, onUsernameEnter() { this.$refs.password.focus(); diff --git a/src/components/ProfileInfoPopup.vue b/src/components/ProfileInfoPopup.vue index ec86bf1..33ec6e3 100644 --- a/src/components/ProfileInfoPopup.vue +++ b/src/components/ProfileInfoPopup.vue @@ -108,7 +108,7 @@ export default { }, createRoom() { this.showDialog = false; - this.$navigation.push({ name: "CreateRoom" }); + this.$navigation.push({ name: "Create" }); }, }, }; diff --git a/src/components/RoomInfoBottomSheet.vue b/src/components/RoomInfoBottomSheet.vue index c5bc13e..a317a9c 100644 --- a/src/components/RoomInfoBottomSheet.vue +++ b/src/components/RoomInfoBottomSheet.vue @@ -39,7 +39,7 @@ export default { createRoom() { this.close(); - this.$navigation.push({ name: "CreateRoom" }); + this.$navigation.push({ name: "Create" }); } } }; diff --git a/src/components/RoomList.vue b/src/components/RoomList.vue index 1b8895c..95602c2 100644 --- a/src/components/RoomList.vue +++ b/src/components/RoomList.vue @@ -187,7 +187,7 @@ export default { }, roomChange(room) { - if (room == null || room == undefined) { + if (room == null || room == undefined || room == 0) { // Ignore, this is caused by "new room" etc. return; }