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