mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
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.
This commit is contained in:
@@ -116,6 +116,14 @@ export function TagSelector({
|
|||||||
<HandleTag />
|
<HandleTag />
|
||||||
</div>
|
</div>
|
||||||
</CommandEmpty>
|
</CommandEmpty>
|
||||||
|
{tags.length === 0 && (
|
||||||
|
<div className="flex flex-col items-center gap-2 py-4">
|
||||||
|
<span className="text-sm text-muted-foreground">
|
||||||
|
No tags created yet.
|
||||||
|
</span>
|
||||||
|
<HandleTag />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<CommandGroup>
|
<CommandGroup>
|
||||||
{tags.map((tag) => {
|
{tags.map((tag) => {
|
||||||
const isSelected = selectedTags.includes(tag.id);
|
const isSelected = selectedTags.includes(tag.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user