X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=2fc7bacbf1f8618ecb500cb9190ba32ee45b12b7;hp=9ec968f8878dca3886efe93ebc2135e2b628a0e4;hb=90df90bca1a993930a0e1a07a1b4990dd538c6e2;hpb=7a1d72724ca06099ac87f094e7216d29a05c7a3e diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue index 9ec968f8..2fc7bacb 100644 --- a/client/src/components/MoveList.vue +++ b/client/src/components/MoveList.vue @@ -46,20 +46,20 @@ div #scoreInfo(v-if="score!='*'") span.score {{ score }} span.score-msg {{ st.tr[message] }} - .moves-list(v-if="!['none','highlight'].includes(show)") + .moves-list .tr(v-for="moveIdx in evenNumbers") .td {{ firstNum + moveIdx / 2 }} - .td(v-if="moveIdx < moves.length-1 || show == 'all'" + .td( :class="{'highlight-lm': cursor == moveIdx}" @click="() => gotoMove(moveIdx)" ) - | {{ notation(moves[moveIdx]) }} + | {{ notation(moveIdx) }} .td( v-if="moveIdx < moves.length-1" - :class="{'highlight-lm': highlightBlackmove(moveIdx+1)}" + :class="{'highlight-lm': cursor == moveIdx+1}" @click="() => gotoMove(moveIdx+1)" ) - | {{ notation(moves[moveIdx + 1]) }} + | {{ notation(moveIdx + 1) }}