mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
(ids) add service status widget to page
This commit is contained in:
parent
a3f0df6f2c
commit
2c01bf0587
@ -32,6 +32,14 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
var data_get_map = {'frm_GeneralSettings':"/api/ids/settings/get"};
|
||||
|
||||
/**
|
||||
* update service status
|
||||
*/
|
||||
function updateStatus() {
|
||||
ajaxCall(url="/api/ids/service/status", sendData={}, callback=function(data,status) {
|
||||
updateServiceStatusUI(data['status']);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* list all known classtypes and add to selection box
|
||||
@ -111,6 +119,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
$('.selectpicker').selectpicker('refresh');
|
||||
});
|
||||
|
||||
updateStatus();
|
||||
|
||||
/**
|
||||
* load content on tab changes
|
||||
*/
|
||||
@ -210,6 +220,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
ajaxCall(url="/api/ids/service/reconfigure", sendData={}, callback=function(data,status) {
|
||||
// when done, disable progress animation.
|
||||
$("#reconfigureAct_progress").removeClass("fa fa-spinner fa-pulse");
|
||||
updateStatus();
|
||||
|
||||
if (status != "success" || data['status'].toLowerCase().trim() != "ok") {
|
||||
BootstrapDialog.show({
|
||||
@ -232,6 +243,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
// when done, disable progress animation and reload grid.
|
||||
$("#updateRulesAct_progress").removeClass("fa fa-spinner fa-pulse");
|
||||
$('#grid-rule-files').bootgrid('reload');
|
||||
updateStatus();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user