Skip to content

Commit

Permalink
fix: Update error message to include path if it exists
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Chong <[email protected]>
  • Loading branch information
keithchong committed Aug 30, 2024
2 parents 25e753d + 8144447 commit c4e98a8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ui/src/app/applications/components/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,17 @@ export const deleteSourceAction = (app: appModels.Application, source: appModels
() => (
<div>
<p>
Are you sure you want to delete the source with URL: <kbd>{source.repoURL}</kbd>?
<>
Are you sure you want to delete the source with URL: <kbd>{source.repoURL}</kbd>
{source.path ? (
<>
{' '}
and path: <kbd>{source.path}</kbd>?
</>
) : (
<>?</>
)}
</>
</p>
</div>
),
Expand Down

0 comments on commit c4e98a8

Please sign in to comment.