mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 19:52:15 +01:00
remove no tags option from timetracker tag dropdown
This commit is contained in:
@@ -26,22 +26,22 @@ defineProps<{
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<TagDropdown v-model="model" :create-tag :tags="tags" @changed="emit('changed')">
|
<TagDropdown
|
||||||
|
v-model="model"
|
||||||
|
:create-tag
|
||||||
|
:tags="tags"
|
||||||
|
:show-no-tag-option="false"
|
||||||
|
@changed="emit('changed')">
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<button
|
<button
|
||||||
data-testid="tag_dropdown"
|
data-testid="tag_dropdown"
|
||||||
:class="
|
:class="
|
||||||
twMerge(
|
twMerge(
|
||||||
iconColorClasses,
|
iconColorClasses,
|
||||||
'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'
|
'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'
|
||||||
)
|
)
|
||||||
">
|
">
|
||||||
<TagIcon class="w-5 h-5 lg:h-6 lg:w-6"></TagIcon>
|
<TagIcon class="w-5 h-5 lg:h-6 lg:w-6"></TagIcon>
|
||||||
<span
|
|
||||||
v-if="model.length > 1"
|
|
||||||
class="font-extrabold absolute rounded-full text-xs w-3 h-3 block top-[15px] rotate-[45deg] right-[14px] text-card-background">
|
|
||||||
{{ model.length }}
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</TagDropdown>
|
</TagDropdown>
|
||||||
|
|||||||
Reference in New Issue
Block a user