Apply suggestions from code review

Co-authored-by: Steffen <steffen@baumgart.biz>
This commit is contained in:
lilserf 2021-01-04 15:33:51 -05:00 committed by GitHub
parent 0b78848d03
commit d52d704e97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,9 @@ export default {
this.$store.commit("toggleModal", "roles"); this.$store.commit("toggleModal", "roles");
break; break;
case "v": case "v":
this.$store.commit("toggleModal", "voteHistory"); if (this.session.voteHistory.length) {
this.$store.commit("toggleModal", "voteHistory");
}
break; break;
case "escape": case "escape":
this.$store.commit("toggleModal"); this.$store.commit("toggleModal");

View File

@ -114,7 +114,7 @@
v-if="session.voteHistory.length" v-if="session.voteHistory.length"
@click="toggleModal('voteHistory')" @click="toggleModal('voteHistory')"
> >
Nomination history<em>[V]</em> Nomination history<em>[V]</em>
</li> </li>
<li @click="leaveSession" v-if="session.sessionId"> <li @click="leaveSession" v-if="session.sessionId">
Leave Session Leave Session