@@ -61,8 +61,6 @@ import { useSearchStore } from "~/stores/search"
61
61
62
62
import { focusElement } from " ~/utils/focus-management"
63
63
64
- import { useAnalytics } from " ~/composables/use-analytics"
65
-
66
64
import VMediaTag from " ~/components/VMediaTag/VMediaTag.vue"
67
65
import VTag from " ~/components/VTag/VTag.vue"
68
66
import VButton from " ~/components/VButton.vue"
@@ -89,7 +87,7 @@ export default defineComponent({
89
87
90
88
const searchStore = useSearchStore ()
91
89
const featureFlagStore = useFeatureFlagStore ()
92
- const { app } = useContext ()
90
+ const { app, $sendCustomEvent } = useContext ()
93
91
94
92
const additionalSearchViews = computed (() =>
95
93
featureFlagStore .isOn (" additional_search_views" )
@@ -162,15 +160,14 @@ export default defineComponent({
162
160
}
163
161
})
164
162
165
- const { sendCustomEvent } = useAnalytics ()
166
163
const buttonStatus = ref <" show" | " hide" >(" show" )
167
164
/**
168
165
* Toggles the text for the "Show more" button. When showing more tags, we also
169
166
* focus the first tag in the newly-opened row for a11y.
170
167
*/
171
168
const handleClick = () => {
172
169
buttonStatus .value = buttonStatus .value === " show" ? " hide" : " show"
173
- sendCustomEvent (" TOGGLE_TAG_EXPANSION" , {
170
+ $ sendCustomEvent (" TOGGLE_TAG_EXPANSION" , {
174
171
toState: buttonStatus .value === " show" ? " collapsed" : " expanded" ,
175
172
})
176
173
if (buttonStatus .value === " hide" && collapsibleRowsStartAt .value ) {
0 commit comments