Merge pull request #6327 from btcpayserver/bugfix/vaulticons

Properly cleaning up old feedback in vault feedback items
This commit is contained in:
rockstardev 2024-10-24 15:33:44 -05:00 committed by GitHub
commit c4a2b4e975
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,13 +184,13 @@ var vaultui = (function () {
var button = $("#vault-retry");
return new Promise(function (resolve) {
button.click(function () {
// Cleanup old feedback
var icon = $(".vault-feedback-icon");
icon.removeClass();
icon.addClass("vault-feedback-icon");
var content = $(".vault-feedback-content");
content.html('');
///////////////////
// Reset feedback statuses
$(".vault-feedback").each(function () {
var icon = $(this).find(".vault-feedback-icon");
icon.removeClass().addClass("vault-feedback-icon d-none");
$(this).find(".vault-feedback-content").html('');
});
button.hide();
self.retryShowing = false;
resolve(true);