nice looking progress percentage
This commit is contained in:
@@ -121,7 +121,7 @@ export default function DownloadQueue() {
|
||||
<ListItemText
|
||||
primary={
|
||||
`${item.chapter.name} | `
|
||||
+ ` (${item.progress * 100}%)`
|
||||
+ ` (${(item.progress * 100).toFixed(2)}%)`
|
||||
+ ` => state: ${item.state}`
|
||||
}
|
||||
/>
|
||||
|
||||
@@ -98,7 +98,7 @@ export default function Manga() {
|
||||
}
|
||||
queue.forEach((q) => {
|
||||
if (chapter.index === q.chapterIndex && chapter.mangaId === q.mangaId) {
|
||||
rtn = ` • Downloading (${q.progress * 100}%)`;
|
||||
rtn = ` • Downloading (${(q.progress * 100).toFixed(2)}%)`;
|
||||
}
|
||||
});
|
||||
return rtn;
|
||||
|
||||
Reference in New Issue
Block a user