mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Properly cleaning up old feedback in vault feedback items
This commit is contained in:
parent
81ce8b0469
commit
d508f5dc09
@ -184,13 +184,13 @@ var vaultui = (function () {
|
|||||||
var button = $("#vault-retry");
|
var button = $("#vault-retry");
|
||||||
return new Promise(function (resolve) {
|
return new Promise(function (resolve) {
|
||||||
button.click(function () {
|
button.click(function () {
|
||||||
// Cleanup old feedback
|
// Reset feedback statuses
|
||||||
var icon = $(".vault-feedback-icon");
|
$(".vault-feedback").each(function () {
|
||||||
icon.removeClass();
|
var icon = $(this).find(".vault-feedback-icon");
|
||||||
icon.addClass("vault-feedback-icon");
|
icon.removeClass().addClass("vault-feedback-icon d-none");
|
||||||
var content = $(".vault-feedback-content");
|
$(this).find(".vault-feedback-content").html('');
|
||||||
content.html('');
|
});
|
||||||
///////////////////
|
|
||||||
button.hide();
|
button.hide();
|
||||||
self.retryShowing = false;
|
self.retryShowing = false;
|
||||||
resolve(true);
|
resolve(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user