Varaverk: always open Scheduler Information on page load; restore button for last log
This commit is contained in:
@@ -1051,16 +1051,12 @@ document.querySelectorAll('.vv-sched-card').forEach(card => {
|
|||||||
requestAnimationFrame(function() {
|
requestAnimationFrame(function() {
|
||||||
vvRestoreInvert();
|
vvRestoreInvert();
|
||||||
const last = localStorage.getItem('vv-last-job');
|
const last = localStorage.getItem('vv-last-job');
|
||||||
if (last && document.querySelector('[data-id="' + CSS.escape(last) + '"]')) {
|
if (last) {
|
||||||
vvOpenRight(last);
|
const lname = last.replace(/\.sh$/, '').split('/').pop();
|
||||||
} else {
|
document.getElementById('vv-restore-label').textContent = lname;
|
||||||
if (last) {
|
document.getElementById('vv-restore-btn').style.display = '';
|
||||||
const lname = last.replace(/\.sh$/, '').split('/').pop();
|
|
||||||
document.getElementById('vv-restore-label').textContent = lname;
|
|
||||||
document.getElementById('vv-restore-btn').style.display = '';
|
|
||||||
}
|
|
||||||
vvFitRight();
|
|
||||||
}
|
}
|
||||||
|
vvFitRight();
|
||||||
vvStartStatusPoll();
|
vvStartStatusPoll();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user