WIP: pipeline page Runs/Run icon actions (run #230)
This commit is contained in:
@@ -497,6 +497,7 @@ class _PipelinesAppState extends State<PipelinesApp>
|
||||
AppDestination.pipelines: (_) => PipelinesDestination(
|
||||
session: _session,
|
||||
server: widget.server,
|
||||
active: _destinationOf(route.kind) == AppDestination.pipelines,
|
||||
legacyPendingEndpoints: widget.legacyPendingEndpoints,
|
||||
refreshToken: _pipelinesRefresh,
|
||||
onRunStarted: _runStarted,
|
||||
|
||||
@@ -20,6 +20,7 @@ class PipelinesDestination extends StatelessWidget {
|
||||
required this.session,
|
||||
required this.server,
|
||||
this.refreshToken = 0,
|
||||
this.active = true,
|
||||
this.onRunStarted,
|
||||
this.onViewPipelineRuns,
|
||||
this.onOpenSchedules,
|
||||
@@ -39,6 +40,9 @@ class PipelinesDestination extends StatelessWidget {
|
||||
/// accepted; the rows still come only from the server's next reply.
|
||||
final int refreshToken;
|
||||
|
||||
/// Keeps a pushed pipeline detail from covering another selected tab.
|
||||
final bool active;
|
||||
|
||||
/// Receives the run id an accepted launch named; the shell opens that route.
|
||||
final ValueChanged<int>? onRunStarted;
|
||||
final ValueChanged<int>? onViewPipelineRuns;
|
||||
@@ -96,6 +100,7 @@ class PipelinesDestination extends StatelessWidget {
|
||||
: 'profile:${serverIdentity(session.gateway)}',
|
||||
legacyEndpoints: legacyPendingEndpoints,
|
||||
embedded: true,
|
||||
active: active,
|
||||
onRunStarted: onRunStarted,
|
||||
onViewPipelineRuns: onViewPipelineRuns,
|
||||
onOpenSchedules: onOpenSchedules,
|
||||
|
||||
Reference in New Issue
Block a user