X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=4afac12da6ecedbe3dfdab87e6630ec7275d3ff7;hb=d639b82a84af667908ccdda522cb1f94fddf55e5;hp=171dc6c68674c42ba3e40a2b0d897bfb77b7ce45;hpb=80b38d463c0d5dacac93bc2aeb666bbb19781e1e;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 171dc6c6..4afac12d 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -46,7 +46,7 @@ main span {{ st.tr["Participant(s):"] }} span( v-for="p in Object.values(people)" - v-if="participateInChat(p)" + v-if="!!p.name" ) | {{ p.name }} span.anonymous(v-if="someAnonymousPresent()") + @nonymous @@ -256,7 +256,8 @@ export default { // In case of incomplete information variant: boardDiv.style.visibility = "hidden"; this.atCreation(); - } else + } + else // Same game ID this.nextIds = JSON.parse(this.$route.query["next"] || "[]"); } @@ -321,9 +322,6 @@ export default { ) ); }, - participateInChat: function(p) { - return Object.keys(p.tmpIds).some(x => p.tmpIds[x].focus) && !!p.name; - }, someAnonymousPresent: function() { return ( Object.values(this.people).some(p =>