@servicemind.tis/tis-smart-table-viewer 2.3.18 → 2.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -127,14 +127,15 @@ class ApiService {
|
|
|
127
127
|
}
|
|
128
128
|
getList(apiUrl, currentPage = 1, limit = 10, search = '', filters, sortFilter) {
|
|
129
129
|
const body = { ...filters, ...sortFilter };
|
|
130
|
+
const encodedSearch = encodeURIComponent(search);
|
|
130
131
|
if (this.token) {
|
|
131
|
-
return this.http.post(`${apiUrl}?current_page=${currentPage}&per_page=${limit}&search=${
|
|
132
|
+
return this.http.post(`${apiUrl}?current_page=${currentPage}&per_page=${limit}&search=${encodedSearch}`, body, {
|
|
132
133
|
headers: {
|
|
133
134
|
'Authorization': `Bearer ${this.token}`
|
|
134
135
|
}
|
|
135
136
|
});
|
|
136
137
|
}
|
|
137
|
-
return this.http.post(`${apiUrl}?current_page=${currentPage}&per_page=${limit}&search=${
|
|
138
|
+
return this.http.post(`${apiUrl}?current_page=${currentPage}&per_page=${limit}&search=${encodedSearch}`, body);
|
|
138
139
|
}
|
|
139
140
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ApiService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
140
141
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: ApiService, providedIn: 'root' });
|