diff --git a/client-app/core/composables/index.ts b/client-app/core/composables/index.ts index 6112ee2ca..9e7cb75ed 100644 --- a/client-app/core/composables/index.ts +++ b/client-app/core/composables/index.ts @@ -14,3 +14,4 @@ export { default as usePageHead } from "./usePageHead"; export { default as useProductsRoutes } from "./useProductsRoutes"; export { default as useRouteQueryParam } from "./useRouteQueryParam"; export { default as useThemeContext } from "./useThemeContext"; +export { default as useComponentId } from "./useComponentId"; diff --git a/client-app/core/composables/useComponentId.ts b/client-app/core/composables/useComponentId.ts new file mode 100644 index 000000000..d36aa39ac --- /dev/null +++ b/client-app/core/composables/useComponentId.ts @@ -0,0 +1,5 @@ +import { getCurrentInstance } from "vue"; + +export default function useComponentId(prefix = "") { + return prefix + getCurrentInstance()!.uid; +} diff --git a/client-app/pages/account/edit-quote.vue b/client-app/pages/account/edit-quote.vue index 51a73eb49..60a7ade40 100644 --- a/client-app/pages/account/edit-quote.vue +++ b/client-app/pages/account/edit-quote.vue @@ -15,16 +15,13 @@ icon="document-text" content-classes="px-6 pb-1 pt-2 lg:px-7 lg:pb-2" > -