3 input#modalBio.modal(type="checkbox")
6 data-checkbox="modalBio"
9 div(v-if="st.user.id == id")
10 h3.section(@click="modeEdit = !modeEdit") Click to edit
12 v-if="userBio !== undefined"
16 button#submitBtn(@click="sendBio()") Submit
18 v-if="userBio !== undefined"
20 @click="modeEdit = !modeEdit"
22 #dialog.text-center {{ st.tr[infoMsg] }}
23 span.clickable(@click="showBio()") {{ name }}
27 import { store } from "@/store";
28 import { ajax } from "@/utils/ajax";
29 import { processModalClick } from "@/utils/modalClick.js";
32 props: ["id", "name"],
42 document.getElementById("bioDiv")
43 .addEventListener("click", processModalClick);
48 document.getElementById("modalBio").checked = true;
49 if (this.userBio === undefined) {
54 data: { id: this.id },
56 this.userBio = res.bio;
67 data: { bio: this.userBio },
69 this.infoMsg = this.st.tr["Modifications applied!"];
78 <style lang="sass" scoped>
79 [type="checkbox"].modal+div .card