Skip to content

Commit cfbfbd4

Browse files
committed
remove no tags option from timetracker tag dropdown
1 parent 6629482 commit cfbfbd4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

resources/js/packages/ui/src/TimeTracker/TimeTrackerTagDropdown.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,22 @@ defineProps<{
2626
</script>
2727

2828
<template>
29-
<TagDropdown v-model="model" :create-tag :tags="tags" @changed="emit('changed')">
29+
<TagDropdown
30+
v-model="model"
31+
:create-tag
32+
:tags="tags"
33+
:show-no-tag-option="false"
34+
@changed="emit('changed')">
3035
<template #trigger>
3136
<button
3237
data-testid="tag_dropdown"
3338
:class="
3439
twMerge(
3540
iconColorClasses,
36-
'flex-shrink-0 ring-0 focus:outline-none focus:ring-2 focus:ring-ring transition focus-visible:bg-card-background-separator hover:bg-card-background-separator rounded-full w-10 h-10 flex items-center justify-center'
41+
'relative flex-shrink-0 ring-0 focus:outline-none focus:ring-2 focus:ring-ring transition focus-visible:bg-card-background-separator hover:bg-card-background-separator rounded-full w-10 h-10 flex items-center justify-center'
3742
)
3843
">
3944
<TagIcon class="w-5 h-5 lg:h-6 lg:w-6"></TagIcon>
40-
<span
41-
v-if="model.length > 1"
42-
class="font-extrabold absolute rounded-full text-xs w-3 h-3 block top-[15px] rotate-[45deg] right-[14px] text-card-background">
43-
{{ model.length }}
44-
</span>
4545
</button>
4646
</template>
4747
</TagDropdown>

0 commit comments

Comments
 (0)