Added uniqueId prop to Filter.js to fix URL using apiFunctionParameters.filterUniqueId

This commit is contained in:
Cris
2024-03-20 09:58:25 +01:00
parent f6eceb892d
commit bc798bd0b4
+4
View File
@@ -65,6 +65,7 @@ export const CoreFilterCmpt = {
newBtnClass: [String, Array, Object],
newBtnDisabled: Boolean,
newBtnLabel: String,
uniqueId: String,
// TODO soll im master kommen?
idField: String,
parentIdField: String
@@ -452,6 +453,9 @@ export const CoreFilterCmpt = {
apiFunctionParameters.filterUniqueId = FHC_JS_DATA_STORAGE_OBJECT.called_path + "/" + FHC_JS_DATA_STORAGE_OBJECT.called_method;
apiFunctionParameters.filterType = this.filterType;
if (this.uniqueId)
apiFunctionParameters.filterUniqueId += '_' + this.uniqueId;
// Assign parameters to the FetchCmpt binded properties
this.fetchCmptApiFunctionParams = apiFunctionParameters;
// Assign data fetch callback to the FetchCmpt binded properties