Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 3353aa6

Browse files
HE00Lhyrepo
authored andcommitted
add showReloadCTA to cover button shows logic.
Fix this [issue](#11).
1 parent 3b70143 commit 3353aa6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frontend/src/components/ProjectConfig.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ interface ProjectConfigProps {
1111
updatePipeline: (pipeline: Pipeline) => void;
1212
addPipeline?: () => void;
1313
deletePipeline?: (pipelineId: string) => void;
14+
showReloadCTA?: boolean;
1415
}
1516

1617
const ProjectConfig: FC<ProjectConfigProps> = ({
@@ -20,8 +21,10 @@ const ProjectConfig: FC<ProjectConfigProps> = ({
2021
updatePipeline,
2122
addPipeline,
2223
deletePipeline,
24+
showReloadCTA=false
2325
}) => {
2426
return (
27+
<div>
2528
<Table<Pipeline>
2629
tableLayout={"fixed"}
2730
css={{
@@ -72,6 +75,11 @@ const ProjectConfig: FC<ProjectConfigProps> = ({
7275
)}
7376
/>
7477
</Table>
78+
{showReloadCTA ? (
79+
<Button type={"primary"} size={"large"} style={{ display:"block", margin:"0 auto" }} onClick={() => location.reload()}>
80+
Go to Dashboard
81+
</Button>) : null}
82+
</div>
7583
);
7684
};
7785

0 commit comments

Comments
 (0)