eventlog: add to/from date picker

This commit is contained in:
Girish Ramakrishnan
2026-02-16 21:50:27 +01:00
parent 81659d4bf2
commit a11a691788
2 changed files with 37 additions and 5 deletions
+2 -2
View File
@@ -6,10 +6,10 @@ function create() {
const accessToken = localStorage.token;
return {
async search(actions, search, page, per_page) {
async search(filter, page, per_page) {
let error, result;
try {
result = await fetcher.get(`${API_ORIGIN}/api/v1/eventlog`, { actions, search, page, per_page, access_token: accessToken });
result = await fetcher.get(`${API_ORIGIN}/api/v1/eventlog`, { ...filter, page, per_page, access_token: accessToken });
} catch (e) {
error = e;
}