diff options
Diffstat (limited to 'src/components/Global/Search.vue')
-rw-r--r-- | src/components/Global/Search.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/Global/Search.vue b/src/components/Global/Search.vue index ac8f9bfb..5c51678c 100644 --- a/src/components/Global/Search.vue +++ b/src/components/Global/Search.vue @@ -39,6 +39,8 @@ <script> import IconSearch from '@carbon/icons-vue/es/search/16'; import IconClose from '@carbon/icons-vue/es/close/20'; +import { useI18n } from 'vue-i18n'; +import i18n from '@/i18n'; export default { name: 'Search', @@ -47,12 +49,13 @@ export default { placeholder: { type: String, default: function () { - return this.$t('global.form.search'); + return i18n.global.t('global.form.search'); }, }, }, data() { return { + $t: useI18n().t, filter: null, }; }, @@ -70,6 +73,9 @@ export default { </script> <style lang="scss" scoped> +@import '@/assets/styles/bmc/helpers/_index.scss'; +@import '@/assets/styles/bootstrap/_helpers.scss'; + .search-input { padding-left: ($spacer * 2); } |