mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-22 15:56:17 -04:00
Solve "transfer-complete" and "receive-complete" status detection via css instead of adding a new class
This commit is contained in:
parent
902b5c6b8f
commit
7c6062e1e0
2 changed files with 6 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue