Skip to content

Commit

Permalink
Shuffle results panel top-level tabs and update default selection
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 12, 2025
1 parent 5d9ad7e commit 959c98a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/aiidalab_qe/app/result/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def _render(self):

self.panels = {
"Summary": self.summary_panel,
"Results": self.results_panel,
"Status": self.status_panel,
"Results": self.results_panel,
}

self.toggle_controls = ipw.ToggleButtons(
Expand Down Expand Up @@ -118,7 +118,11 @@ def _post_render(self):
self._update_kill_button_layout()
self._update_clean_scratch_button_layout()

self.toggle_controls.value = "Summary"
self.toggle_controls.value = (
"Results"
if (process := self._model.fetch_process_node()) and process.is_finished
else "Status"
)

self.process_monitor = ProcessMonitor(
timeout=0.5,
Expand Down

0 comments on commit 959c98a

Please sign in to comment.