Skip to content

Commit b060f80

Browse files
committed
feat: add no tags message to tag selector component
Enhance the TagSelector component to display a message when no tags are created, prompting users to add tags. This improves user experience by providing clear feedback in the UI.
1 parent 04b9f56 commit b060f80

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

apps/dokploy/components/shared/tag-selector.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ export function TagSelector({
116116
<HandleTag />
117117
</div>
118118
</CommandEmpty>
119+
{tags.length === 0 && (
120+
<div className="flex flex-col items-center gap-2 py-4">
121+
<span className="text-sm text-muted-foreground">
122+
No tags created yet.
123+
</span>
124+
<HandleTag />
125+
</div>
126+
)}
119127
<CommandGroup>
120128
{tags.map((tag) => {
121129
const isSelected = selectedTags.includes(tag.id);

0 commit comments

Comments
 (0)