mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added refresh buttons to guide and tv pages
This commit is contained in:
parent
0b911596eb
commit
07d6d245d1
5 changed files with 216 additions and 5 deletions
|
@ -372,16 +372,21 @@
|
|||
|
||||
html += '<p>';
|
||||
|
||||
html += task.Name;
|
||||
html += task.Name+"<br/>";
|
||||
|
||||
if (task.State == "Running") {
|
||||
var progress = (task.CurrentProgressPercentage || 0).toFixed(1);
|
||||
html += '<span style="color:#267F00;margin-right:5px;font-weight:bold;"> - ' + progress + '%</span>';
|
||||
|
||||
html += '<progress max="100" value="' + progress + '" title="' + progress + '%">';
|
||||
html += '' + progress + '%';
|
||||
html += '</progress>';
|
||||
|
||||
html += "<span style='color:#009F00;margin-left:5px;margin-right:5px;'>" + progress + "%</span>";
|
||||
|
||||
html += '<button type="button" data-icon="stop" data-iconpos="notext" data-inline="true" data-mini="true" onclick="DashboardPage.stopTask(\'' + task.Id + '\');">Stop</button>';
|
||||
}
|
||||
else if (task.State == "Cancelling") {
|
||||
html += '<span style="color:#cc0000;"> - Stopping</span>';
|
||||
html += '<span style="color:#cc0000;">Stopping</span>';
|
||||
}
|
||||
|
||||
html += '</p>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue