Show the terminal bar button on the Chat tab only
Pipelines and Runs no longer carry it; the keyboard shortcut still toggles the terminal everywhere.
This commit is contained in:
@@ -747,7 +747,12 @@ class _PipelinesAppState extends State<PipelinesApp>
|
||||
final runsRoute = tab(AppDestination.runs);
|
||||
final chatRoute = tab(AppDestination.chat);
|
||||
return AdaptiveShell(
|
||||
barActions: [_terminals.toggle(cupertino: _cupertino)],
|
||||
// The terminal button sits on the Chat tab only; the keyboard
|
||||
// shortcut still toggles the terminal everywhere.
|
||||
barActions: [
|
||||
if (_destinationOf(route.kind) == AppDestination.chat)
|
||||
_terminals.toggle(cupertino: _cupertino),
|
||||
],
|
||||
attentionCount: attentionCount,
|
||||
cupertino: _cupertino,
|
||||
destination: _destinationOf(route.kind),
|
||||
|
||||
Reference in New Issue
Block a user