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:
@@ -381,6 +381,9 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
|
|||||||
<CommandEmpty>No branch found.</CommandEmpty>
|
<CommandEmpty>No branch found.</CommandEmpty>
|
||||||
|
|
||||||
<CommandGroup>
|
<CommandGroup>
|
||||||
|
{branches && branches.length === 0 && (
|
||||||
|
<CommandItem>No branches found.</CommandItem>
|
||||||
|
)}
|
||||||
{branches?.map((branch: GiteaBranch) => (
|
{branches?.map((branch: GiteaBranch) => (
|
||||||
<CommandItem
|
<CommandItem
|
||||||
value={branch.name}
|
value={branch.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user