X-Git-Url: https://git.auder.net/assets/icon_infos.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FGameList.vue;h=5a4c8f7c39eba08525811690209c73db3d63c039;hb=9ddaf8da8743c50b9019888a82d84392913c60c9;hp=243593025e9ff6c5028e6a0e7adc1bcd4521434b;hpb=714680114508183fba2c07231dbe8f90b5631b81;p=vchess.git diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index 24359302..5a4c8f7c 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -15,12 +15,14 @@ div td(data-label="White") {{ g.players[0].name || "@nonymous" }} td(data-label="Black") {{ g.players[1].name || "@nonymous" }} td(data-label="Time control") {{ g.cadence }} - td(data-label="Result") {{ g.score }} + td(data-label="Result" :class="{finished: g.score!='*'}" + @click.stop="deleteGame(g)") + | {{ g.score }} @@ -62,4 +70,6 @@ export default { // TODO: understand why the style applied to element doesn't work tr.my-turn > td background-color: #fcd785 +tr td.finished + background-color: red