Compare commits
2 Commits
ac07420ef1
...
126f563a07
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
126f563a07 | ||
|
|
6bed124984 |
@ -127,7 +127,10 @@ class BackupPage {
|
|||||||
if (refreshBtn.classList.contains('is-refreshing')) return;
|
if (refreshBtn.classList.contains('is-refreshing')) return;
|
||||||
refreshBtn.classList.add('is-refreshing');
|
refreshBtn.classList.add('is-refreshing');
|
||||||
const done = () => refreshBtn.classList.remove('is-refreshing');
|
const done = () => refreshBtn.classList.remove('is-refreshing');
|
||||||
this.refreshAll().then(() => this.render()).then(done, done);
|
// Hold the spin for a beat even when the refetch is instant (local
|
||||||
|
// data) so the click always registers as a visible pulse.
|
||||||
|
const minSpin = new Promise((r) => setTimeout(r, 450));
|
||||||
|
Promise.all([this.refreshAll().then(() => this.render()), minSpin]).then(done, done);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user