X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=57557d493e2f0c69a26ab5ad8d2536fba01d99f1;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hp=0840cd91f50fb0c3d0fea4805a6c85b4c4ebda42;hpb=32f6285ee325a14286562a53baefc647201df2af;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 0840cd91..57557d49 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -73,10 +73,14 @@ main ) fieldset(v-if="st.user.id > 0") label(for="selectPlayers") {{ st.tr["Play with"] }} - select#selectPlayersInList(v-model="newchallenge.to") + 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 }} @@ -123,7 +127,7 @@ main p.anonymous @nonymous ({{ anonymousCount() }}) #chat Chat( - :newChat="newChat" + ref="chatcomp" @mychat="processChat" :pastChats="[]" ) @@ -131,7 +135,7 @@ main .row .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 .button-group - button#peopleBtn(onClick="window.doClick('modalPeople')") + button#peopleBtn(@click="openModalPeople()") | {{ st.tr["Who's there?"] }} button(@click="showNewchallengeForm()") | {{ st.tr["New game"] }} @@ -193,7 +197,7 @@ main ) button#loadMoreBtn( v-if="hasMore" - @click="loadMore()" + @click="loadMoreCorr()" ) | {{ st.tr["Load more"] }} @@ -201,10 +205,11 @@ main