0
0
Fork 0

Add support leaving/deleting game

This commit is contained in:
Oliver-Akins 2021-01-02 00:34:47 -07:00
parent 1512960b2a
commit 8bede05e07
2 changed files with 39 additions and 5 deletions

View file

@ -95,10 +95,16 @@ export default {
this.handleError(data);
} else {
this.alert = {
message: `The game has been ended.`,
type: `info`
}
message: `The game has been ended by the host.`,
type: `info`,
};
this.$store.commit(`resetState`);
setTimeout(() => {
this.alert = {
message: null,
type: null,
};
}, 2000)
};
},
},
@ -137,7 +143,6 @@ html, body {
}
.alert-bar.info {
background-color: #7289da;
font-size: large;
color: #000000;
}