From 6f0f3890f9a820674d2ede815a2879e1d44a9184 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 30 Sep 2024 13:43:26 +0200 Subject: [PATCH] doesnt show the footer in the editProfil modal when opening a ProfilUpdate --- .../Cis/Profil/ProfilModal/EditProfil.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js index 39faf0a45..b244091bb 100755 --- a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js +++ b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js @@ -37,7 +37,6 @@ export default { fileID: null, breadcrumb: null, loading: false, - result: false, info: null, }; @@ -50,7 +49,7 @@ export default { }, methods: { - updateFileIDFunction: function (newFileID) { + updateFileIDFunction: function (newFileID) { this.fileID = newFileID; }, @@ -154,7 +153,16 @@ export default { } }, }, - computed: {}, + computed: { + showFooter: function () { + switch(this.value.view){ + case 'Status': return false; + case 'Kontakt':return false; + case 'Adresse':return false; + default: return true; + } + }, + }, created() { if (this.editData.topic) { //? if the topic was passed through the prop add it to the component @@ -188,7 +196,7 @@ export default { -