Skip to content

Commit

Permalink
NCL-8740 Make SCM repo creation alert displayed also when creation is…
Browse files Browse the repository at this point in the history
… WIP
  • Loading branch information
patrikk0123 committed Sep 9, 2024
1 parent c28c091 commit a789bd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ export const BuildConfigCreateEditPage = ({ isEditPage = false }: IBuildConfigCr
</FormGroup>
)}

{!isEditPage && getFieldState(scmRepositoryEntityAttributes.scmUrl.id) === 'success' && (
{!isEditPage && getFieldState(scmRepositoryEntityAttributes.scmUrl.id) !== 'error' && (
<ServiceContainerLoading
title="SCM Repository"
emptyContent={<ScmRepositoryUrlAlert variant="not-synced" {...selectedScmRepository} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export const ScmRepositoryCreateEditPage = ({ isEditPage = false }: IScmReposito
</FormInputHelperText>
</FormGroup>

{getFieldState(scmRepositoryEntityAttributesUrl.id) === 'success' && (
{getFieldState(scmRepositoryEntityAttributesUrl.id) !== 'error' && (
<ServiceContainerLoading
title="SCM Repository"
emptyContent={<ScmRepositoryUrlAlert variant="not-synced" {...selectedScmRepository} />}
Expand Down

0 comments on commit a789bd3

Please sign in to comment.