From 2df91bce5c51f8e2783603494128bcabd3c5ed05 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 8 Apr 2024 15:49:28 +0200 Subject: [PATCH] adds phrasen to the ProfilUpdateView.js file --- .../ProfilComponents/FetchProfilUpdates.js | 10 ++-- .../Cis/ProfilUpdate/ProfilUpdateView.js | 51 +++++++--------- system/phrasesupdate.php | 60 +++++++++++++++++++ 3 files changed, 86 insertions(+), 35 deletions(-) diff --git a/public/js/components/Cis/Profil/ProfilComponents/FetchProfilUpdates.js b/public/js/components/Cis/Profil/ProfilComponents/FetchProfilUpdates.js index a23956f7f..630569a6e 100755 --- a/public/js/components/Cis/Profil/ProfilComponents/FetchProfilUpdates.js +++ b/public/js/components/Cis/Profil/ProfilComponents/FetchProfilUpdates.js @@ -81,7 +81,7 @@ export default { } //? adds the status information if the profil update request was rejected or accepted - if (updateRequest.status !== "pending") { + if (updateRequest.status !== this.$p.t('profilUpdate','pending')) { content["status"] = updateRequest.status; content["status_message"] = updateRequest.status_message; content["status_timestamp"] = updateRequest.status_timestamp; @@ -114,7 +114,7 @@ export default { ); }, getView: function (topic, status) { - if (!(status === "pending")) { + if (!(status === this.$p.t('profilUpdate','pending'))) { return "Status"; } @@ -194,7 +194,7 @@ export default { } //? adds the status information if the profil update request was rejected or accepted - if (updateRequest.status !== "pending") { + if (updateRequest.status !== this.$p.t('profilUpdate','pending')) { content["status"] = updateRequest.status; content["status_message"] = updateRequest.status_message; content["status_timestamp"] = updateRequest.status_timestamp; @@ -243,12 +243,12 @@ export default { - + {{item.topic}} {{item.status}} {{item.status_timestamp?item.status_timestamp:item.insertamum}} -