mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
isolated clickonce dependancies
This commit is contained in:
parent
331a8d8366
commit
6e188875dd
2 changed files with 3 additions and 4 deletions
|
@ -252,8 +252,8 @@
|
||||||
html += task.Name;
|
html += task.Name;
|
||||||
|
|
||||||
if (task.State == "Running") {
|
if (task.State == "Running") {
|
||||||
var progress = task.CurrentProgress || { PercentComplete: 0 };
|
var progress = Math.round(task.CurrentProgressPercentage || 0);
|
||||||
html += '<span style="color:#267F00;margin-right:5px;font-weight:bold;"> - ' + Math.round(progress.PercentComplete) + '%</span>';
|
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>';
|
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,8 +119,7 @@
|
||||||
}
|
}
|
||||||
else if (task.State == "Running") {
|
else if (task.State == "Running") {
|
||||||
|
|
||||||
var progress = task.CurrentProgress || { PercentComplete: 0 };
|
var progress = Math.round(task.CurrentProgressPercentage || 0);
|
||||||
progress = Math.round(progress.PercentComplete);
|
|
||||||
|
|
||||||
html += '<p><progress max="100" value="' + progress + '" title="' + progress + '%">';
|
html += '<p><progress max="100" value="' + progress + '" title="' + progress + '%">';
|
||||||
html += '' + progress + '%';
|
html += '' + progress + '%';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue