WIP: pipeline page Runs/Run icon actions (run #230)
This commit is contained in:
@@ -32,6 +32,7 @@ class PipelinesScreen extends StatefulWidget {
|
||||
this.endpoint = '',
|
||||
this.legacyEndpoints = const [],
|
||||
this.embedded = false,
|
||||
this.active = true,
|
||||
this.syncToken = 0,
|
||||
this.onRunStarted,
|
||||
this.onViewPipelineRuns,
|
||||
@@ -52,6 +53,10 @@ class PipelinesScreen extends StatefulWidget {
|
||||
/// True under the application shell, which owns the single navigation bar.
|
||||
final bool embedded;
|
||||
|
||||
/// Whether the Pipelines tab is currently visible. The screen stays mounted
|
||||
/// to preserve tab state, but its pushed detail must not cover another tab.
|
||||
final bool active;
|
||||
|
||||
/// Advances when the shared socket is replaced. The mounted controller
|
||||
/// reloads the list and the selected detail without losing the selection.
|
||||
final int syncToken;
|
||||
@@ -238,7 +243,7 @@ class _PipelinesScreenState extends State<PipelinesScreen> {
|
||||
);
|
||||
_page.sync(
|
||||
context,
|
||||
selected: _controller.hasSelection && !wide,
|
||||
selected: widget.active && _controller.hasSelection && !wide,
|
||||
destination: AppDestination.pipelines,
|
||||
onClosed: _controller.clearSelection,
|
||||
builder: (context) => AnimatedBuilder(
|
||||
|
||||
Reference in New Issue
Block a user