Always show challenge button in Hall, colored if focused
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 28 May 2020 16:27:33 +0000 (18:27 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 28 May 2020 16:27:33 +0000 (18:27 +0200)
client/src/views/Hall.vue

index 5b537d8..4e1e54b 100644 (file)
@@ -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