Solve "transfer-complete" and "receive-complete" status detection via css instead of adding a new class

This commit is contained in:
schlagmichdoch 2024-02-09 02:09:53 +01:00
parent 902b5c6b8f
commit 7c6062e1e0
2 changed files with 6 additions and 11 deletions

View file

@ -807,16 +807,11 @@ class PeerUI {
this.$el.querySelector('.status').innerText = statusName;
this._currentStatus = status;
if (status === "transfer-complete" || status === "receive-complete") {
this.$el.classList.remove('blink');
if (status.indexOf("-complete") || status === "receive-complete") {
this.statusTimeout = setTimeout(() => {
this.setProgress(0, null);
}, 10000);
}
else {
this.$el.classList.add('blink');
}
}
_onDrop(e) {