3 input#modalBio.modal(type="checkbox")
6 data-checkbox="modalBio"
9 div(v-if="st.user.id > 0 && st.user.id == uid")
10 h3.section(@click="modeEdit = !modeEdit") Click to edit
12 v-if="userBio !== undefined && modeEdit"
15 button#submitBtn(@click="sendBio()") Submit
17 v-if="userBio !== undefined"
19 @click="modeEdit = !modeEdit"
21 #dialog.text-center {{ st.tr[infoMsg] }}
23 :class="{ clickable: !!uname }"
26 | {{ uname || "@nonymous" }}
30 import { store } from "@/store";
31 import { ajax } from "@/utils/ajax";
32 import { processModalClick } from "@/utils/modalClick.js";
35 props: ["uid", "uname"],
45 document.getElementById("bioDiv")
46 .addEventListener("click", processModalClick);
51 // Anonymous users have no bio:
54 document.getElementById("modalBio").checked = true;
55 if (this.userBio === undefined) {
60 data: { id: this.uid },
62 this.userBio = res.bio;
73 data: { bio: this.userBio },
75 this.infoMsg = this.st.tr["Modifications applied!"];
84 <style lang="sass" scoped>
85 [type="checkbox"].modal+div .card