mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-02 00:02:19 -07:00
BE+FE: work on bulk deleting devices and code cleanup #1493
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -373,7 +373,10 @@ function deleteAllDevices()
|
||||
url,
|
||||
method: "DELETE",
|
||||
headers: { "Authorization": `Bearer ${apiToken}` },
|
||||
data: JSON.stringify({ macs: null }),
|
||||
data: JSON.stringify({
|
||||
macs: [],
|
||||
confirm_delete_all: true
|
||||
}),
|
||||
contentType: "application/json",
|
||||
success: function(response) {
|
||||
showMessage(response.success ? "All devices deleted successfully" : (response.error || "Unknown error"));
|
||||
|
||||
Reference in New Issue
Block a user