Support upgraded rooms (via links to successor/predecessor)
This commit is contained in:
parent
970f82ba29
commit
615aa2b781
11 changed files with 181 additions and 48 deletions
|
|
@ -78,7 +78,7 @@
|
|||
</v-col>
|
||||
</v-row>
|
||||
|
||||
<v-checkbox id="chk-accept-ua" class="mt-0" v-model="acceptUA">
|
||||
<v-checkbox id="chk-accept-ua" class="mt-0" v-model="acceptUA" v-if="!$store.state.uaAccepted">
|
||||
<template v-slot:label>
|
||||
<i18n-t keypath="join.accept_ua" tag="span">
|
||||
<template v-slot:agreement>
|
||||
|
|
@ -265,6 +265,7 @@ export default {
|
|||
if (!value || (value && value == oldVal)) {
|
||||
return; // No change.
|
||||
}
|
||||
this.acceptUA = this.$store.state.uaAccepted;
|
||||
console.log("Join: Current room changed to " + (value ? value : "null"));
|
||||
this.roomName = this.removeHomeServer(this.roomId);
|
||||
|
||||
|
|
@ -437,6 +438,7 @@ export default {
|
|||
.then((room) => {
|
||||
this.loading = false;
|
||||
this.loadingMessage = null;
|
||||
this.$store.commit("acceptUA", true);
|
||||
this.$nextTick(() => {
|
||||
if (this.roomNeedsKnock) {
|
||||
// For knocks, send to room list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue