mirror of
https://github.com/jpros/tacticalrmm-web.git
synced 2026-02-06 12:20:21 +00:00
rework bulk action modal. start running bulk actions on next agent checkin
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
@@ -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) { }
|
||||
}
|
||||
Reference in New Issue
Block a user