From 2c6f825c6d1be427bc029c84e3ccf2a879aaefbf Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Wed, 7 Dec 2022 13:13:36 +0100 Subject: [PATCH] remove component scope --- .../TagsMultiselect/StatelessTags.vue | 23 ++++++++----------- client/src/components/TagsMultiselect/Tag.vue | 13 ++++------- 2 files changed, 15 insertions(+), 21 deletions(-) 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) { } - -