Conform error state data object and move error state to App object
This commit is contained in:
parent
74a784f497
commit
79c04fe626
2 changed files with 6 additions and 1 deletions
|
|
@ -44,7 +44,11 @@ export default {
|
|||
sessionStorage.setItem(`host`, true);
|
||||
this.$emit(`go-to`, `lobby`);
|
||||
} else {
|
||||
this.error = data.error_message
|
||||
console.error(data.message);
|
||||
this.$emit(`error`, {
|
||||
message: data.message,
|
||||
classes: [`error`]
|
||||
});
|
||||
};
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue