Skip to content

Commit

Permalink
Fix auto-switching job summary tab on job view page
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Sep 14, 2024
1 parent 074e8f3 commit b05e55a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Web/Pages/JobView.page
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ var oRunningJobStatus = {
}
},
update: function(data) {
const first_run = (Object.keys(this.data).length == 0);
this.set_data(data);
if (this.data.is_running && this.is_status_supported() === false) {
return;
Expand All @@ -242,7 +243,10 @@ var oRunningJobStatus = {
$('#' + this.ids.refresh_interval).parent().hide();
var graphical_container = document.getElementById(this.ids.graphical_container);
graphical_container.style.display = 'none';
W3SubTabs.open('job_report_summary_subtab_text', 'job_report_summary', 'job_log');
if (!first_run || (!W3SubTabs.is_open('joblog_text_output') && !W3SubTabs.is_open('jobfiles_list'))) {
// direct to job summary only if job was in previous refresh running or if no other tab is opened
W3SubTabs.open('job_report_summary_subtab_text', 'job_report_summary', 'job_log');
}
}
},
add_running_job: function(job, full_refresh) {
Expand Down

0 comments on commit b05e55a

Please sign in to comment.