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");
|
this.$store.commit("toggleModal", "voteHistory");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "s":
|
||||||
|
if (this.session.isSpectator) return;
|
||||||
|
this.$store.commit("toggleNight");
|
||||||
|
break;
|
||||||
case "escape":
|
case "escape":
|
||||||
this.$store.commit("toggleModal");
|
this.$store.commit("toggleModal");
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,10 +43,7 @@
|
||||||
<li @click="toggleNight" v-if="!session.isSpectator">
|
<li @click="toggleNight" v-if="!session.isSpectator">
|
||||||
<template v-if="!grimoire.isNight">Switch to Night</template>
|
<template v-if="!grimoire.isNight">Switch to Night</template>
|
||||||
<template v-if="grimoire.isNight">Switch to Day</template>
|
<template v-if="grimoire.isNight">Switch to Day</template>
|
||||||
<em
|
<em>[S]</em>
|
||||||
><font-awesome-icon
|
|
||||||
:icon="['fas', grimoire.isNight ? 'sun' : 'cloud-moon']"
|
|
||||||
/></em>
|
|
||||||
</li>
|
</li>
|
||||||
<li @click="toggleNightOrder" v-if="players.length">
|
<li @click="toggleNightOrder" v-if="players.length">
|
||||||
Night order
|
Night order
|
||||||
|
|
|
@ -34,7 +34,6 @@ const faIcons = [
|
||||||
"SearchMinus",
|
"SearchMinus",
|
||||||
"SearchPlus",
|
"SearchPlus",
|
||||||
"Square",
|
"Square",
|
||||||
"Sun",
|
|
||||||
"TheaterMasks",
|
"TheaterMasks",
|
||||||
"Times",
|
"Times",
|
||||||
"TimesCircle",
|
"TimesCircle",
|
||||||
|
|
Loading…
Reference in New Issue