Show "Failed to join room" instead of error

Issue #140.
This commit is contained in:
N-Pex 2021-07-06 10:06:30 +02:00
parent abd3892349
commit fba929a0d7
2 changed files with 3 additions and 2 deletions

View file

@ -136,7 +136,8 @@
"join": "Join room", "join": "Join room",
"join_guest": "Join as guest", "join_guest": "Join as guest",
"status_logging_in": "Logging in...", "status_logging_in": "Logging in...",
"status_joining": "Joining room..." "status_joining": "Joining room...",
"join_failed": "Failed to join room."
}, },
"invite": { "invite": {
"title": "Add Friends", "title": "Add Friends",

View file

@ -399,7 +399,7 @@ export default {
// TODO - handle error // TODO - handle error
console.log("Failed to join room", err); console.log("Failed to join room", err);
this.loading = false; this.loading = false;
this.loadingMessage = err.toString(); this.loadingMessage = this.$t("join.join_failed");
}); });
}, },