Validate AllowedIPs from user input

This commit is contained in:
Khanh Ngo
2020-04-19 10:46:43 +07:00
parent fe57993240
commit 7ae4dd12dd
5 changed files with 55 additions and 14 deletions

View File

@@ -246,6 +246,10 @@
$('#modal_new_client').modal('hide');
toastr.success('Created new client successfully');
// TODO: trigger reloading the dashboard
},
error: function(jqXHR, exception) {
var responseJson = jQuery.parseJSON(jqXHR.responseText);
toastr.error(responseJson['message']);
}
});
}