From 8ccc621a91a4c4a8e0c5076e8e9f327bf8eb1096 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Tue, 27 Feb 2024 11:42:42 +0100 Subject: [PATCH] Finalized db schema changes for Anwesenheitskontrolle and Checkin; Multiple Lektor scenario not being managed yet; reworked frontend requests towards API Controller to not confuse vue router; WIP UX; --- public/js/components/filter/Filter.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/components/filter/Filter.js b/public/js/components/filter/Filter.js index 64a75c910..49cbd0024 100644 --- a/public/js/components/filter/Filter.js +++ b/public/js/components/filter/Filter.js @@ -271,6 +271,7 @@ export const CoreFilterCmpt = { if (CoreRESTClient.hasData(response)) { + let data = CoreRESTClient.getData(response); this.filterName = data.filterName; this.dataset = data.dataset; @@ -278,7 +279,7 @@ export const CoreFilterCmpt = { this.fields = data.fields; this.selectedFields = data.selectedFields; - this.notSelectedFields = this.fields.filter(x => this.selectedFields.indexOf(x) === -1); + // this.notSelectedFields = this.fields.filter(x => this.selectedFields.indexOf(x) === -1); this.filterFields = []; for (let i = 0; i < data.datasetMetadata.length; i++) @@ -291,7 +292,7 @@ export const CoreFilterCmpt = { filter.type = data.datasetMetadata[i].type; this.filterFields.push(filter); - //break; + //break; } } } @@ -406,6 +407,7 @@ export const CoreFilterCmpt = { * Used to start/refresh the FetchCmpt */ startFetchCmpt: function(apiFunction, apiFunctionParameters, dataFetchedCallback) { + // Assign the function api of the FetchCmpt binded property this.fetchCmptApiFunction = apiFunction;