X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=01f588f23dacc8acbe6abe9318df2a431b810640;hb=6c7cbfedc6ecf2b49f6b1e27a174039e92a36365;hp=14ea54faf1ab2509f8cc916ce5730727fe4a443b;hpb=28b32b4fc7c23b1c72bed68e1897576c5be46c3d;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 14ea54fa..01f588f2 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -66,13 +66,24 @@ main option(value="1") {{ st.tr["Symmetric random"] }} option(value="2") {{ st.tr["Asymmetric random"] }} fieldset - label(for="memorizeChall") {{ st.tr["Memorize?"] }} + label(for="memorizeChall") {{ st.tr["Memorize"] }} input#memorizeChall( type="checkbox" v-model="newchallenge.memorize" ) fieldset(v-if="st.user.id > 0") - label(for="selectPlayers") {{ st.tr["Play with?"] }} + label(for="selectPlayers") {{ st.tr["Play with"] }} + select#selectPlayersInList( + v-model="newchallenge.to" + @change="changeChallTarget()" + ) + option(value="") + option( + v-for="p in Object.values(people)" + v-if="!!p.name" + :value="p.name" + ) + | {{ p.name }} input#selectPlayers( type="text" v-model="newchallenge.to" @@ -88,7 +99,7 @@ main button(@click="issueNewChallenge()") {{ st.tr["Send challenge"] }} input#modalPeople.modal( type="checkbox" - @click="resetSocialColor()" + @click="toggleSocialColor()" ) div#peopleWrap( role="dialog" @@ -113,10 +124,10 @@ main @click="challenge(sid)" ) | {{ st.tr["Challenge"] }} - p.anonymous @nonymous ({{ anonymousCount }}) + p.anonymous @nonymous ({{ anonymousCount() }}) #chat Chat( - :newChat="newChat" + ref="chatcomp" @mychat="processChat" :pastChats="[]" ) @@ -175,24 +186,30 @@ main GameList( v-show="gdisplay=='live'" :games="filterGames('live')" - :showBoth="true" - @show-game="showGame" - ) - GameList( - v-show="gdisplay=='corr'" - :games="filterGames('corr')" - :showBoth="true" + :show-both="true" @show-game="showGame" ) + div(v-show="gdisplay=='corr'") + GameList( + :games="filterGames('corr')" + :show-both="true" + @show-game="showGame" + ) + button#loadMoreBtn( + v-if="hasMore" + @click="loadMoreCorr()" + ) + | {{ st.tr["Load more"] }}