rework bulk action modal. start running bulk actions on next agent checkin

This commit is contained in:
sadnub
2021-07-30 12:48:47 -04:00
parent b5b5ddc047
commit a8df08cf4e
7 changed files with 310 additions and 282 deletions

View File

@@ -22,3 +22,10 @@ export async function runScript(payload) {
return data
} catch (e) { }
}
export async function runBulkAction(payload) {
const { data } = await axios.post("/agents/bulk/", payload)
return data
}

View File

@@ -7,4 +7,11 @@ export async function fetchClients() {
const { data } = await axios.get(`${baseUrl}/clients/`)
return data
} catch (e) { }
}
export async function fetchSites() {
try {
const { data } = await axios.get(`${baseUrl}/sites/`)
return data
} catch (e) { }
}