From: Benjamin Auder Date: Fri, 1 May 2020 23:17:43 +0000 (+0200) Subject: UserBio: a few fixes, but still doesn't work as expected X-Git-Url: https://git.auder.net/variants/current/css/img/pieces/scripts/R.css?a=commitdiff_plain;h=80b38d463c0d5dacac93bc2aeb666bbb19781e1e;p=vchess.git UserBio: a few fixes, but still doesn't work as expected --- diff --git a/client/src/components/UserBio.vue b/client/src/components/UserBio.vue index c954f3d8..181c7dfe 100644 --- a/client/src/components/UserBio.vue +++ b/client/src/components/UserBio.vue @@ -6,11 +6,10 @@ div data-checkbox="modalBio" ) .card - div(v-if="st.user.id == id") + div(v-if="st.user.id > 0 && st.user.id == uid") h3.section(@click="modeEdit = !modeEdit") Click to edit textarea( - v-if="userBio !== undefined" - v-show="modeEdit" + v-if="userBio !== undefined && modeEdit" v-model="userBio" ) button#submitBtn(@click="sendBio()") Submit @@ -20,7 +19,11 @@ div @click="modeEdit = !modeEdit" ) #dialog.text-center {{ st.tr[infoMsg] }} - span.clickable(@click="showBio()") {{ name }} + span( + :class="{ clickable: !!uname }" + @click="showBio()" + ) + | {{ uname || "@nonymous" }}