webapp dhcp.js: fixed stuck button issue after removing lease.

This commit is contained in:
Shreyas Zare
2021-09-18 19:44:22 +05:30
parent df81d7d02a
commit 28329bcd0a

View File

@@ -148,7 +148,9 @@ function removeLease(objBtn, index, scopeName, hardwareAddress) {
HTTPRequest({
url: "/api/removeDhcpLease?token=" + token + "&name=" + encodeURIComponent(scopeName) + "&hardwareAddress=" + encodeURIComponent(hardwareAddress),
success: function (responseJSON) {
btn.button('reset');
$("#modalDhcpRemoveLease").modal("hide");
refreshDhcpLeases();
showAlert("success", "Lease Removed!", "The DHCP lease was removed successfully.");