Skip to content

Commit f63af83

Browse files
author
maro114510
committed
fix: Mofify logics
1 parent efd1134 commit f63af83

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

popup.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,3 @@ label:hover input[type="checkbox"] {
261261
opacity: 0.7;
262262
pointer-events: none;
263263
}
264-
265-
/* Skip info styling */
266-
.skip-info {
267-
font-size: 11px;
268-
color: #9ca3af;
269-
margin-top: 2px;
270-
}

popup.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,19 @@ const LoadingManager = {
4646
},
4747

4848
hide() {
49+
if (this.hideTimeout) {
50+
clearTimeout(this.hideTimeout);
51+
this.hideTimeout = null;
52+
}
4953
if (this.container) this.container.classList.remove("active");
5054
if (runButton) runButton.classList.remove("loading");
5155
},
5256

5357
showError(message = "Error") {
58+
if (this.hideTimeout) {
59+
clearTimeout(this.hideTimeout);
60+
this.hideTimeout = null;
61+
}
5462
if (this.spinner) {
5563
this.spinner.classList.add("error");
5664
this.spinner.classList.remove("success");
@@ -60,6 +68,10 @@ const LoadingManager = {
6068
},
6169

6270
showSuccess(message = "Done!") {
71+
if (this.hideTimeout) {
72+
clearTimeout(this.hideTimeout);
73+
this.hideTimeout = null;
74+
}
6375
if (this.spinner) {
6476
this.spinner.classList.add("success");
6577
this.spinner.classList.remove("error");

0 commit comments

Comments
 (0)