mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Add message for empty branches in Gitea provider
- Introduced a conditional rendering for displaying a message when no branches are found in the Gitea provider component, enhancing user feedback during branch selection. - This update improves the overall user experience by clearly indicating the absence of branches.
This commit is contained in:
parent
44af0ec975
commit
9fe2460b88
@ -381,6 +381,9 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
|
||||
<CommandEmpty>No branch found.</CommandEmpty>
|
||||
|
||||
<CommandGroup>
|
||||
{branches && branches.length === 0 && (
|
||||
<CommandItem>No branches found.</CommandItem>
|
||||
)}
|
||||
{branches?.map((branch: GiteaBranch) => (
|
||||
<CommandItem
|
||||
value={branch.name}
|
||||
|
Loading…
Reference in New Issue
Block a user