mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix scheduled task time limit key
This commit is contained in:
parent
331fa87216
commit
b67f4eccfb
1 changed files with 3 additions and 3 deletions
|
@ -58,13 +58,13 @@ import confirm from '../../../components/confirm/confirm';
|
||||||
|
|
||||||
html += '<div class="listItem listItem-border">';
|
html += '<div class="listItem listItem-border">';
|
||||||
html += '<span class="material-icons listItemIcon schedule" aria-hidden="true"></span>';
|
html += '<span class="material-icons listItemIcon schedule" aria-hidden="true"></span>';
|
||||||
if (trigger.MaxRuntimeMs) {
|
if (trigger.MaxRuntimeTicks) {
|
||||||
html += '<div class="listItemBody two-line">';
|
html += '<div class="listItemBody two-line">';
|
||||||
} else {
|
} else {
|
||||||
html += '<div class="listItemBody">';
|
html += '<div class="listItemBody">';
|
||||||
}
|
}
|
||||||
html += "<div class='listItemBodyText'>" + ScheduledTaskPage.getTriggerFriendlyName(trigger) + '</div>';
|
html += "<div class='listItemBodyText'>" + ScheduledTaskPage.getTriggerFriendlyName(trigger) + '</div>';
|
||||||
if (trigger.MaxRuntimeMs) {
|
if (trigger.MaxRuntimeTicks) {
|
||||||
html += '<div class="listItemBodyText secondary">';
|
html += '<div class="listItemBodyText secondary">';
|
||||||
const hours = trigger.MaxRuntimeTicks / 36e9;
|
const hours = trigger.MaxRuntimeTicks / 36e9;
|
||||||
if (hours == 1) {
|
if (hours == 1) {
|
||||||
|
@ -202,7 +202,7 @@ import confirm from '../../../components/confirm/confirm';
|
||||||
let timeLimit = $('#txtTimeLimit', page).val() || '0';
|
let timeLimit = $('#txtTimeLimit', page).val() || '0';
|
||||||
timeLimit = parseFloat(timeLimit) * 3600000;
|
timeLimit = parseFloat(timeLimit) * 3600000;
|
||||||
|
|
||||||
trigger.MaxRuntimeMs = timeLimit || null;
|
trigger.MaxRuntimeTicks = timeLimit * 1e4 || null;
|
||||||
|
|
||||||
return trigger;
|
return trigger;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue