feat: add restore points integration via /api/v1/restorePoints
This commit is contained in:
@@ -489,10 +489,12 @@ function renderJobsTable(inst) {
|
||||
for (const j of jobs) {
|
||||
const isDisabled = j.schedule_enabled === false || (j.state || '').toLowerCase() === 'disabled';
|
||||
const pts = j.restore_points_to_keep != null ? j.restore_points_to_keep : (j.restorePointsToKeep != null ? j.restorePointsToKeep : '—');
|
||||
const actual = j.actual_restore_points != null ? j.actual_restore_points : null;
|
||||
const ptsDisplay = actual != null ? (pts !== '—' ? pts + ' / ' + actual : actual) : pts;
|
||||
rows += '<tr class="' + (isDisabled ? 'job-disabled' : '') + '">';
|
||||
rows += '<td>' + esc(j.name || j.Name || '—') + '</td>';
|
||||
rows += '<td>' + esc(j.type || j.jobType || '—') + '</td>';
|
||||
rows += '<td>' + pts + '</td>';
|
||||
rows += '<td>' + ptsDisplay + '</td>';
|
||||
rows += '<td>' + formatDate(j.last_backup) + '</td>';
|
||||
rows += '<td>' + (isDisabled ? '<span class="badge danger">выключена</span>' : '<span class="badge success">включена</span>') + '</td>';
|
||||
rows += '</tr>';
|
||||
|
||||
Reference in New Issue
Block a user