diff --git a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js index 1b54fe7f6..ec14a9486 100755 --- a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js +++ b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js @@ -56,9 +56,6 @@ export default { async submitProfilChange() { - //todo delete this debugging line - console.log("this is a test") - //? check if data is valid before making a request if (this.topic && this.profilUpdate) { //? if profil update contains any attachment diff --git a/public/js/components/Cis/Profil/ProfilModal/EditProfilComponents/EditAdresse.js b/public/js/components/Cis/Profil/ProfilModal/EditProfilComponents/EditAdresse.js index c3f194958..c38f6fd31 100755 --- a/public/js/components/Cis/Profil/ProfilModal/EditProfilComponents/EditAdresse.js +++ b/public/js/components/Cis/Profil/ProfilModal/EditProfilComponents/EditAdresse.js @@ -34,10 +34,6 @@ export default { }, methods: { - test: function () { - console.log(this.gemeinden, "this are the gemeinden"); - console.log(this.ortschaftnamen, "this are the ortschaftsnamen"); - }, autocompleteSearchGemeinden: function (event) { this.gemeinden = this.gemeinden.map((gemeinde) => gemeinde); @@ -97,6 +93,11 @@ export default { computed: { showZustellAdressenWarning: function () { + + // if the address was already a zustellungsadresse when editing the address, then the warning will not be shown and the zustellungsadresse will just be overwritten + if (JSON.parse(this.originalValue).zustelladresse){ + return false; + } // if zustellAdressenCount is not 0 and the own kontakt has the flag zustellung set to true if (!this.zustellAdressenCount.includes(this.data.adresse_id)) { return this.data.zustelladresse && this.zustellAdressenCount.length; @@ -135,7 +136,7 @@ export default {