Fixing UI
This commit is contained in:
parent
1c53aeba2f
commit
051a231482
2 changed files with 11 additions and 11 deletions
20
crates/librqbit/webui/dist/app.js
vendored
20
crates/librqbit/webui/dist/app.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -161,7 +161,7 @@ const TorrentRow: React.FC<{
|
|||
const progressPercentage = error ? 100 : (progressBytes / totalBytes) * 100;
|
||||
const isAnimated = (state == STATE_INITIALIZING || state == STATE_LIVE) && !finished;
|
||||
const progressLabel = error ? 'Error' : `${progressPercentage.toFixed(2)}%`;
|
||||
const progressBarVariant = error ? 'danger' : finished ? 'success' : 'primary';
|
||||
const progressBarVariant = error ? 'danger' : finished ? 'success' : state == STATE_INITIALIZING ? 'warning' : 'primary';
|
||||
|
||||
const formatPeersString = () => {
|
||||
let peer_stats = statsResponse?.live?.snapshot.peer_stats;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue