Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 27, 2025
2 parents 27d6777 + 4ea25b8 commit 8b51b23
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/templates/service_creds.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,15 @@ <h5 class="modal-title">Vault Info</h5>
$(".updateBtn").click(function () {
var button = $(event.relatedTarget) // Button that triggered the modal
var cred_id = button.data('id')
// add spinner to button
$(this).parent().find(".updateBtn").addClass("disabled", true);
$(this).addClass("updateBtn", true);
if (cred_id == "") {
$(this).html( `<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Adding ...` );
} else {
$(this).html( `<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Updating...` );
if ($('#credForm')[0].checkValidity()) {
// add spinner to button
$(this).parent().find(".updateBtn").addClass("disabled", true);
$(this).addClass("updateBtn", true);
if (cred_id == "") {
$(this).html( `<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Adding ...` );
} else {
$(this).html( `<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Updating...` );
}
}
});
});
Expand Down

0 comments on commit 8b51b23

Please sign in to comment.