Merge pull request #105 from davotronic5000/#90_hotkey_night_mode

#90 hotkey night mode
This commit is contained in:
Steffen 2021-01-27 20:34:11 +01:00 committed by GitHub
commit a03fd30bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -107,6 +107,10 @@ export default {
this.$store.commit("toggleModal", "voteHistory");
}
break;
case "s":
if (this.session.isSpectator) return;
this.$store.commit("toggleNight");
break;
case "escape":
this.$store.commit("toggleModal");
}

View File

@ -43,10 +43,7 @@
<li @click="toggleNight" v-if="!session.isSpectator">
<template v-if="!grimoire.isNight">Switch to Night</template>
<template v-if="grimoire.isNight">Switch to Day</template>
<em
><font-awesome-icon
:icon="['fas', grimoire.isNight ? 'sun' : 'cloud-moon']"
/></em>
<em>[S]</em>
</li>
<li @click="toggleNightOrder" v-if="players.length">
Night order

View File

@ -34,7 +34,6 @@ const faIcons = [
"SearchMinus",
"SearchPlus",
"Square",
"Sun",
"TheaterMasks",
"Times",
"TimesCircle",