Commit 07249432 authored by sstern's avatar sstern

Convert underscore to lodash

parent 81a5fdac
<script> <script>
import _ from 'underscore'; import { throttle } from 'lodash';
import { mapActions, mapState, mapGetters } from 'vuex'; import { mapActions, mapState, mapGetters } from 'vuex';
import { GlLoadingIcon } from '@gitlab/ui'; import { GlLoadingIcon } from '@gitlab/ui';
import LoadingButton from '~/vue_shared/components/loading_button.vue'; import LoadingButton from '~/vue_shared/components/loading_button.vue';
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
this.setFilter(target.value); this.setFilter(target.value);
}, },
throttledFetchRepos: _.throttle(function fetch() { throttledFetchRepos: throttle(function fetch() {
eventHub.$off('importAll'); eventHub.$off('importAll');
this.fetchRepos(); this.fetchRepos();
}, reposFetchThrottleDelay), }, reposFetchThrottleDelay),
......
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