import QuickLinks from "./ProfilComponents/QuickLinks.js"; import Mailverteiler from "./ProfilComponents/Mailverteiler.js"; import ProfilEmails from "./ProfilComponents/ProfilEmails.js"; import RoleInformation from "./ProfilComponents/RoleInformation.js"; import ProfilInformation from "./ProfilComponents/ProfilInformation.js"; export default { data() { return {}; }, components: { QuickLinks, Mailverteiler, ProfilEmails, RoleInformation, ProfilInformation, }, props: ["data"], methods: {}, computed: { editable() { return this.data?.editAllowed ?? false; }, profilInformation() { if (!this.data) { return {}; } return { Vorname: this.data.vorname, Nachname: this.data.nachname, Username: this.data.username, Anrede: this.data.anrede, Titel: this.data.titel, Postnomen: this.data.postnomen, foto_sperre: this.data.foto_sperre, foto: this.data.foto, }; }, personEmails() { return this.data?.emails ? this.data.emails : []; }, roleInformation() { if (!this.data) { return {}; } return { Geburtsdatum: this.data.gebdatum, Geburtsort: this.data.gebort, Personenkennzeichen: this.data.personenkennzeichen, Studiengang: this.data.studiengang, Semester: this.data.semester, Verband: this.data.verband, Gruppe: this.data.gruppe.trim(), }; }, }, mounted() {}, template: /*html*/ `