mirror of https://github.com/bra1n/townsquare.git
Merge pull request #105 from davotronic5000/#90_hotkey_night_mode
#90 hotkey night mode
This commit is contained in:
commit
a03fd30bf5
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -34,7 +34,6 @@ const faIcons = [
|
|||
"SearchMinus",
|
||||
"SearchPlus",
|
||||
"Square",
|
||||
"Sun",
|
||||
"TheaterMasks",
|
||||
"Times",
|
||||
"TimesCircle",
|
||||
|
|
Loading…
Reference in New Issue