Commit 0e2c1f1c authored by Luke Bennett's avatar Luke Bennett

update help_popover

parent bdd1a46f
<script> <script>
import $ from 'jquery'; import $ from 'jquery';
import _ from 'underscore';
import Icon from '~/vue_shared/components/icon.vue'; import Icon from '~/vue_shared/components/icon.vue';
import { inserted } from '~/feature_highlight/feature_highlight_helper';
import { import {
togglePopover,
inserted,
mouseenter, mouseenter,
mouseleave, debouncedMouseleave,
} from '~/feature_highlight/feature_highlight_helper'; togglePopover,
} from '~/shared/popover';
export default { export default {
name: 'SecurityReportsHelpPopover', name: 'SecurityReportsHelpPopover',
...@@ -32,7 +31,7 @@ export default { ...@@ -32,7 +31,7 @@ export default {
...this.options, ...this.options,
}) })
.on('mouseenter', mouseenter) .on('mouseenter', mouseenter)
.on('mouseleave', _.debounce(mouseleave, 300)) .on('mouseleave', debouncedMouseleave(300))
.on('inserted.bs.popover', inserted) .on('inserted.bs.popover', inserted)
.on('show.bs.popover', () => { .on('show.bs.popover', () => {
window.addEventListener('scroll', togglePopover.bind(this.$el, false), { once: true }); window.addEventListener('scroll', togglePopover.bind(this.$el, false), { once: true });
......
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