Skip to content

Commit

Permalink
fix: Fix issues after review (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmevladik authored and MykolaMarusenko committed Jul 16, 2024
1 parent a31ada8 commit 56ad9a4
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/pages/edp-cdpipeline-list/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,12 @@ export const PageView = () => {
error={error}
filterFunction={filterFunction}
blockerComponent={
codebasePermissions.create ? (
!gitOpsCodebaseQuery.data && (
<EmptyList
customText={'No GitOps repository configured.'}
linkText={'Click here to add a repository.'}
handleClick={() => history.push(gitOpsConfigurationPageRoute)}
/>
)
) : (
<EmptyList customText="You do not have permission to create GitOps repository." />
!gitOpsCodebaseQuery.data && (
<EmptyList
customText={'No GitOps repository configured.'}
linkText={'Click here to add a repository.'}
handleClick={() => history.push(gitOpsConfigurationPageRoute)}
/>
)
}
/>
Expand Down

0 comments on commit 56ad9a4

Please sign in to comment.