remove query in preview mode if the room is already closed

peertube
Namekuji 2023-01-12 21:13:10 -05:00
rodzic 1b51d65aea
commit 48350175f0
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -156,6 +156,7 @@ export default {
}
}
} catch (error) {
let query = { l: `/r/${this.roomID}` };
switch (error.response?.status) {
case 404:
pushNotFound(this.$route);
@ -165,11 +166,12 @@ export default {
break;
case 410:
alert(this.$t("errors.alreadyClosed"));
query = undefined;
break;
}
this.$router.push({
name: "login",
query: { l: `/r/${this.roomID}` },
query,
});
} finally {
this.loading = false;