diff --git a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js index 53d5267c8..0c9d451f4 100755 --- a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js +++ b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js @@ -1,4 +1,3 @@ - import { CoreFilterCmpt } from "../../../components/filter/Filter.js"; import Mailverteiler from "./ProfilComponents/Mailverteiler.js"; import QuickLinks from "./ProfilComponents/QuickLinks.js"; @@ -15,11 +14,11 @@ export default { ProfilEmails, ProfilInformation, }, - inject: ['collapseFunction'], + inject: ["collapseFunction"], data() { return { collapseIconFunktionen: true, - + funktionen_table_options: { height: 300, layout: "fitColumns", @@ -82,22 +81,18 @@ export default { }, ], }, - }; }, //? this is the prop passed to the dynamic component with the custom data of the view props: ["data"], - methods: { - - }, + methods: {}, computed: { - personEmails() { return this.data?.emails ? this.data.emails : []; }, - + profilInformation() { if (!this.data) { return {}; @@ -110,13 +105,10 @@ export default { Anrede: this.data.anrede, Titel: this.data.titel, Postnomen: this.data.postnomen, - foto_sperre:this.data.foto_sperre, - foto:this.data.foto, - + foto_sperre: this.data.foto_sperre, + foto: this.data.foto, }; }, - - roleInformation() { if (!this.data) { @@ -127,25 +119,22 @@ export default { Geburtsdatum: this.data.gebdatum, Geburtsort: this.data.gebort, Kurzzeichen: this.data.kurzbz, - Telefon: (this.data.standort_telefon?this.data.standort_telefon:"") + " " + this.data.telefonklappe, + Telefon: + (this.data.standort_telefon ? this.data.standort_telefon : "") + + " " + + this.data.telefonklappe, Büro: this.data.ort_kurzbz, }; }, - - }, mounted() { - - this.$refs.funktionenTable.tabulator.on("tableBuilt", () => { this.$refs.funktionenTable.tabulator.setData(this.data.funktionen); }); - - }, - template: /*html*/` + template: /*html*/ `