Commit 74e0ace7 authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: other
parent 0842aff3
<script> <script>
import { GlTabs, GlTab, GlBadge } from '@gitlab/ui'; import { GlTabs, GlTab, GlBadge } from '@gitlab/ui';
import { mapState } from 'vuex'; import { mapState } from 'vuex';
// eslint-disable-next-line import/no-deprecated import { queryToObject } from '~/lib/utils/url_utility';
import { urlParamsToObject } from '~/lib/utils/url_utility';
import { __ } from '~/locale'; import { __ } from '~/locale';
import { MEMBER_TYPES, TAB_QUERY_PARAM_VALUES, ACTIVE_TAB_QUERY_PARAM_NAME } from '../constants'; import { MEMBER_TYPES, TAB_QUERY_PARAM_VALUES, ACTIVE_TAB_QUERY_PARAM_NAME } from '../constants';
import MembersApp from './app.vue'; import MembersApp from './app.vue';
...@@ -59,8 +58,7 @@ export default { ...@@ -59,8 +58,7 @@ export default {
}, },
}), }),
urlParams() { urlParams() {
// eslint-disable-next-line import/no-deprecated return Object.keys(queryToObject(window.location.search, { gatherArrays: true }));
return Object.keys(urlParamsToObject(window.location.search));
}, },
activeTabIndexCalculatedFromUrlParams() { activeTabIndexCalculatedFromUrlParams() {
return this.$options.TABS.findIndex(({ namespace }) => { return this.$options.TABS.findIndex(({ namespace }) => {
......
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