Merge pull request #80 from lilserf/main

Add V hotkey for voting history
This commit is contained in:
Steffen 2021-01-05 20:23:48 +01:00 committed by GitHub
commit cbbcf01ba7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -102,6 +102,11 @@ export default {
if (this.session.isSpectator) return; if (this.session.isSpectator) return;
this.$store.commit("toggleModal", "roles"); this.$store.commit("toggleModal", "roles");
break; break;
case "v":
if (this.session.voteHistory.length) {
this.$store.commit("toggleModal", "voteHistory");
}
break;
case "escape": case "escape":
this.$store.commit("toggleModal"); this.$store.commit("toggleModal");
} }

View File

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