Skip to content

Commit

Permalink
close #19
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousm4x committed May 31, 2022
1 parent 2e251f3 commit 7050088
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions app/frontend/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@
dot.style.animation = "none";
dot.offsetWidth;
if (!spinner.classList.contains("d-none")) {
if (dot.classList.contains("danger")) {
spinner.classList.add("d-none");
dot.classList.remove("d-none", "danger");
dot.classList.add("success");
}
spinner.classList.add("d-none");
dot.classList.remove("d-none", "danger");
dot.classList.add("success");
} else {
dot.style.animation = "on-pulse 1s normal";
}
Expand All @@ -111,11 +109,9 @@
dot.style.animation = "none";
dot.offsetWidth;
if (!spinner.classList.contains("d-none")) {
if (dot.classList.contains("success")) {
spinner.classList.add("d-none");
dot.classList.remove("d-none", "success");
dot.classList.add("danger");
}
spinner.classList.add("d-none");
dot.classList.remove("d-none", "success");
dot.classList.add("danger");
} else {
dot.style.animation = "off-pulse 1s normal";
}
Expand Down

0 comments on commit 7050088

Please sign in to comment.