Skip to content

Commit

Permalink
[CN-2386] add conditional render when landing on page
Browse files Browse the repository at this point in the history
  • Loading branch information
Abel Rodriguez committed Jun 7, 2023
1 parent f21d465 commit dc79190
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions spin-observatory-plugin-deck/src/components/PluginContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,17 @@ export function PluginContainer({ app }: IPluginContainerProps) {
</div>
</div>
<div style={{ flexGrow: 19 }}>
<PipelineExecutions
appName={app.name}
pipeline={selectedPipeline}
parameters={selectedParams}
status={selectedStatus}
dateRange={selectedDateRange}
/>
{!selectedPipeline ? (
<h4 style={{ textAlign: 'center' }}>Select a pipeline..</h4>
) : (
<PipelineExecutions
appName={app.name}
pipeline={selectedPipeline}
parameters={selectedParams}
status={selectedStatus}
dateRange={selectedDateRange}
/>
)}
</div>
</div>
);
Expand Down

0 comments on commit dc79190

Please sign in to comment.