Open queue when clicking active history jobs
This commit is contained in:
parent
8bad3d30c1
commit
bc56642d3b
9
main.go
9
main.go
|
|
@ -1970,10 +1970,17 @@ func (s *appState) showMainMenu() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onHistoryClick := func(entry ui.HistoryEntry) {
|
||||||
|
if entry.Status == queue.JobStatusRunning || entry.Status == queue.JobStatusPending {
|
||||||
|
s.showQueue()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
s.showHistoryDetails(entry)
|
||||||
|
}
|
||||||
sidebar = ui.BuildHistorySidebar(
|
sidebar = ui.BuildHistorySidebar(
|
||||||
s.historyEntries,
|
s.historyEntries,
|
||||||
activeJobs,
|
activeJobs,
|
||||||
s.showHistoryDetails,
|
onHistoryClick,
|
||||||
s.deleteHistoryEntry,
|
s.deleteHistoryEntry,
|
||||||
s.clearHistoryEntries,
|
s.clearHistoryEntries,
|
||||||
s.historyTabIdx,
|
s.historyTabIdx,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user