diff --git a/client/src/components/TagsMultiselect/StatelessTags.vue b/client/src/components/TagsMultiselect/StatelessTags.vue index b3c15de2f4c..3363fa524a8 100644 --- a/client/src/components/TagsMultiselect/StatelessTags.vue +++ b/client/src/components/TagsMultiselect/StatelessTags.vue @@ -6,15 +6,17 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { useUserTags } from "composables/user"; import { useToast } from "composables/toast"; import { useUid } from "composables/utils/uid"; +import { library } from "@fortawesome/fontawesome-svg-core"; +import { faTags, faCheck, faTimes, faPlus } from "@fortawesome/free-solid-svg-icons"; import type { Ref } from "vue"; export interface StatelessTagsProps { - value: string[]; - disabled: boolean; - clickable: boolean; - useToggleLink: boolean; - maxVisibleTags: number; + value?: string[]; + disabled?: boolean; + clickable?: boolean; + useToggleLink?: boolean; + maxVisibleTags?: number; } const props = withDefaults(defineProps(), { @@ -30,6 +32,9 @@ const emit = defineEmits<{ (e: "tag-click", tag: string): void; }>(); +//@ts-ignore bad library types +library.add(faTags, faCheck, faTimes, faPlus); + const { userTags, addLocalTag } = useUserTags(); const { warning } = useToast(); @@ -108,14 +113,6 @@ function onTagClicked(tag: string) { } - -