From: Benjamin Auder Date: Thu, 28 May 2020 16:27:33 +0000 (+0200) Subject: Always show challenge button in Hall, colored if focused X-Git-Url: https://git.auder.net/variants/Dynamo/js/current/rpsls.js?a=commitdiff_plain;h=56c40600596cc772f86034808ddcb2cbaab35570;p=vchess.git Always show challenge button in Hall, colored if focused --- diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 5b537d85..4e1e54b8 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -128,7 +128,8 @@ main ) | {{ st.tr["Observe"] }} button.player-action( - v-else-if="isFocusedOnHall(sid)" + v-else-if="st.user.sid != sid" + :class="{focused: isFocusedOnHall(sid)}" @click="challenge(sid)" ) | {{ st.tr["Challenge"] }} @@ -1415,6 +1416,8 @@ div#peopleWrap > .card button.player-action margin-left: 32px + &.focused + background-color: #E6D271 .somethingnew background-color: #90C4EC !important