mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-04 09:50:09 +00:00
Adds factory reset checks button to the 'All' checks page
Addresses #5898
This commit is contained in:
parent
d9d36e117e
commit
2713d96653
3 changed files with 37 additions and 3 deletions
|
|
@ -2003,4 +2003,18 @@ $(function () {
|
|||
})
|
||||
})
|
||||
|
||||
$(`#btn-confirm-action_factory-reset-modal`).click(async function () {
|
||||
$.post(`${http_prefix}/lua/rest/v2/reset/checks/config.lua`, {
|
||||
csrf: pageCsrf
|
||||
})
|
||||
.then((result) => {
|
||||
if (result.rc_str == "OK") location.reload();
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
})
|
||||
.always(() => {
|
||||
})
|
||||
})
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue