From ff88581ecd3850d847aa83903b625147c37c57bf Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 5 Feb 2024 14:26:38 +0100 Subject: [PATCH] stores the value of the selection to show all or only the pending Profil update requests in the sessionStorage --- public/js/apps/Cis/ProfilUpdateRequests.js | 16 ++++++++++------ .../Cis/ProfilUpdate/AcceptDenyUpdate.js | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/public/js/apps/Cis/ProfilUpdateRequests.js b/public/js/apps/Cis/ProfilUpdateRequests.js index 126fc5fed..24e33110e 100755 --- a/public/js/apps/Cis/ProfilUpdateRequests.js +++ b/public/js/apps/Cis/ProfilUpdateRequests.js @@ -130,16 +130,20 @@ const app = Vue.createApp({ } }, methods: { - updateData: function(){ + updateData: function(event){ this.$refs.UpdatesTable.tabulator.setData(); - /* - console.log(this.profil_updates_table_options.ajaxURL); - */ + //? store the selected view in the session storage of the browser + sessionStorage.setItem("showAll",event.target.value); } }, - created() {}, - mounted() {}, + mounted() { + if(!(sessionStorage.getItem("showAll")===null)) + { + this.showAll = sessionStorage.getItem("showAll"); + } + + }, template: `
diff --git a/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js b/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js index 7f342a41e..896a2edf9 100755 --- a/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js +++ b/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js @@ -144,15 +144,6 @@ export default { -
-
Status message:
- - {{data.status_message? data.status_message : '-'}} -
- - - -
UserID:
@@ -179,6 +170,16 @@ export default {
+ +
+
+
+
Status message
+ +
+
+
+