Skip to content

Commit

Permalink
Remove animation for refresh icon during task initiation
Browse files Browse the repository at this point in the history
  • Loading branch information
Satish Surath committed Feb 8, 2025
1 parent 0b5e5c4 commit 9822585
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ document.addEventListener("DOMContentLoaded", () => {
.then(data => {
if (data.status === "initiated") {
console.log('refresh initiated', data.task_id);
const icon = event.currentTarget.querySelector('svg');
icon.classList.add('animate-spin');
setTimeout(() => icon.classList.remove('animate-spin'), 1000);
// const icon = event.currentTarget.querySelector('svg');
// icon.classList.add('animate-spin');
// setTimeout(() => icon.classList.remove('animate-spin'), 1000);
alert(`Refresh initiated. Task ID: ${data.task_id}`);
} else {
alert(`Error refreshing channel: ${data.message}`);
Expand Down

0 comments on commit 9822585

Please sign in to comment.