mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve library scan progress reporting
This commit is contained in:
parent
67ffedd914
commit
6761d5c3c9
2 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@
|
|||
html += task.Name;
|
||||
|
||||
if (task.State == "Running") {
|
||||
var progress = Math.round(task.CurrentProgressPercentage || 0);
|
||||
var progress = (task.CurrentProgressPercentage || 0).toFixed(1);
|
||||
html += '<span style="color:#267F00;margin-right:5px;font-weight:bold;"> - ' + progress + '%</span>';
|
||||
|
||||
html += '<button type="button" data-icon="stop" data-iconpos="notext" data-inline="true" data-theme="b" data-mini="true" onclick="DashboardPage.stopTask(\'' + task.Id + '\');">Stop</button>';
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
}
|
||||
else if (task.State == "Running") {
|
||||
|
||||
var progress = Math.round(task.CurrentProgressPercentage || 0);
|
||||
var progress = (task.CurrentProgressPercentage || 0).toFixed(1);
|
||||
|
||||
html += '<p><progress max="100" value="' + progress + '" title="' + progress + '%">';
|
||||
html += '' + progress + '%';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue