diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Kontaktieren.js b/public/js/components/Stv/Studentenverwaltung/Details/Kontaktieren.js index 3d2b8ed80..f5cc1b339 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Kontaktieren.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Kontaktieren.js @@ -1,7 +1,14 @@ +import { splitMailsHelper } from "../../../../helpers/EmailHelpers.js"; import { splitMailLinks } from "../../../../helpers/EmailHelpers.js"; +import FormInput from "../../../Form/Input.js"; +import FormForm from "../../../Form/Form.js"; export default { name: "Kontaktieren", + components: { + FormInput, + FormForm + }, computed: { internMails() { if (this.modelValue.mail_intern) @@ -31,20 +38,21 @@ export default { data(){ return { mailLinks: [], - showMailDialog: false + showMailDialog: false, + showDivKomp: false } }, methods: { internMail(event) { if (this.internMails.length) { - splitMailsHelper(this.internMails, event, null, this.$fhcAlert, this.$p) + splitMailsHelper(this.internMails, event, null, this.$fhcAlert, this.$p, this.authUid) } }, privateMail(event) { if (this.privateMails.length) { - splitMailsHelper(this.privateMails, event, null, this.$fhcAlert, this.$p) + splitMailsHelper(this.privateMails, event, null, this.$fhcAlert, this.$p, this.authUid) } }, createMailLinks(event, mailGroup){ @@ -63,67 +71,108 @@ export default { }, reset(){ this.showMailDialog = false; + }, + onSwitchChange(){ + if (this.showDivKomp) { + console.log("zeigen"); + } + else { + console.log("nicht zeigen"); + } + + }, + showKompatiblitymode(){ + this.showDivKomp = !this.showDivKomp; } }, template: `
-
-
- +
+ + +
+ +
+
+
+ +
+
+
+
+ +
-
-
- +
+ +
+
+ +
+
+
+
+ +
-
-
-
-

{{$p.t('stv', 'zuvieleEMails')}}

+
` }; \ No newline at end of file diff --git a/public/js/helpers/EmailHelpers.js b/public/js/helpers/EmailHelpers.js index 47aff573d..0b7c68662 100644 --- a/public/js/helpers/EmailHelpers.js +++ b/public/js/helpers/EmailHelpers.js @@ -1,4 +1,7 @@ -export async function splitMailsHelper(mails, event, subject, alertPluginRef, phrasenPluginRef) { + + + +export async function splitMailsHelper(mails, event, subject, alertPluginRef, phrasenPluginRef, uidCC= "") { let splititem = ","; let maillist = mails.join(splititem); let mailto = ""; @@ -26,7 +29,9 @@ export async function splitMailsHelper(mails, event, subject, alertPluginRef, ph maillist = ""; } - let mailLink = useBcc ? `mailto:?bcc=${mailto}` : `mailto:${mailto}`; + let mailadressUid = uidCC + '@technikum-wien.at'; + + let mailLink = useBcc ? `mailto:${mailadressUid}?cc=${mailadressUid}&bcc=${mailto}` : `mailto:${mailto}`; if(subject && typeof subject === 'string') mailLink += `?subject=${subject}` if (firstrun) { diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index be53ff438..1c3d9a72b 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -58217,6 +58217,26 @@ I have been informed that I am under no obligation to consent to the transmissio ) ) ), + array( + 'app' => 'core', + 'category' => 'ui', + 'phrase' => 'kompatibilityMode_Sogo', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Kompatibilitätsmodus für SOGO', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Open in Compatibility mode (SOGO)', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), );