From 064a740a2692022bfa71d59a4ef8c4a9bdb70538 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sun, 9 Feb 2025 12:38:35 +0700 Subject: [PATCH] fix(ui): change logic --- .../src/lib/tags-selector/tags-selector.component.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/ui/src/lib/tags-selector/tags-selector.component.html b/libs/ui/src/lib/tags-selector/tags-selector.component.html index 3fcb0ffcb..4994ed7b4 100644 --- a/libs/ui/src/lib/tags-selector/tags-selector.component.html +++ b/libs/ui/src/lib/tags-selector/tags-selector.component.html @@ -42,9 +42,12 @@ {{ tag.name }} } - @if ((filteredOptions | async)?.length === 0) { - - Create new tag "{{ tagInputControl.value }}" + @if (tagInputControl.value && hasPermissionToCreateTags) { + + + + Create new tag "{{ tagInputControl.value.trim() }}" + }