X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=920d5240579692424f421e8f9f15b7f4bf6dc15a;hp=b238758c82e0cba2b89453b234d660228cca3230;hb=311cba767e3c461edb0c8c758bfb193ef670a68f;hpb=e71161fbfffe53b0f4b174e0467cdd98cc70b7b0 diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index b238758c..920d5240 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -2,7 +2,7 @@ div #scoreInfo(v-if="score!='*'") p {{ score }} - p {{ message }} + p {{ st.tr[message] }} .moves-list .tr(v-for="moveIdx in evenNumbers") .td {{ firstNum + moveIdx / 2 + 1 }} @@ -27,6 +27,11 @@ import { getFullNotation } from "@/utils/notation"; export default { name: "my-move-list", props: ["moves", "show", "cursor", "score", "message", "firstNum"], + data: function() { + return { + st: store.state + }; + }, watch: { cursor: function(newCursor) { if (window.innerWidth <= 767) return; //scrolling would hide chessboard