Commit edbd66f0 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix counting of visits for freq. projects / groups

The incrementing is done on the created hook of the Vue component so we
need to initialize the component earlier
parent d511d3b3
......@@ -28,8 +28,8 @@ export default function initFrequentItemDropdowns() {
return;
}
$(navEl).on('shown.bs.dropdown', () =>
import('./components/app.vue').then(({ default: FrequentItems }) => {
import('./components/app.vue')
.then(({ default: FrequentItems }) => {
// eslint-disable-next-line no-new
new Vue({
el,
......@@ -59,9 +59,11 @@ export default function initFrequentItemDropdowns() {
});
},
});
})
.catch(() => {});
$(navEl).on('shown.bs.dropdown', () => {
eventHub.$emit(`${namespace}-dropdownOpen`);
}),
);
});
});
}
---
title: Fix tracking of frequently visited projects and groups
merge_request: 40415
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment