Commit 72a08617 authored by Illya Klymov's avatar Illya Klymov

Remove unneeded pagination code for project importers

parent 0fd4eec6
...@@ -2,7 +2,6 @@ import Vue from 'vue'; ...@@ -2,7 +2,6 @@ import Vue from 'vue';
import Translate from '../vue_shared/translate'; import Translate from '../vue_shared/translate';
import ImportProjectsTable from './components/import_projects_table.vue'; import ImportProjectsTable from './components/import_projects_table.vue';
import { parseBoolean } from '../lib/utils/common_utils'; import { parseBoolean } from '../lib/utils/common_utils';
import { queryToObject } from '../lib/utils/url_utility';
import createStore from './store'; import createStore from './store';
Vue.use(Translate); Vue.use(Translate);
...@@ -20,18 +19,12 @@ export function initStoreFromElement(element) { ...@@ -20,18 +19,12 @@ export function initStoreFromElement(element) {
paginatable, paginatable,
} = element.dataset; } = element.dataset;
const params = queryToObject(document.location.search);
const page = parseInt(params.page ?? 1, 10);
return createStore({ return createStore({
initialState: { initialState: {
defaultTargetNamespace: gon.current_username, defaultTargetNamespace: gon.current_username,
ciCdOnly: parseBoolean(ciCdOnly), ciCdOnly: parseBoolean(ciCdOnly),
canSelectNamespace: parseBoolean(canSelectNamespace), canSelectNamespace: parseBoolean(canSelectNamespace),
provider, provider,
pageInfo: {
page,
},
}, },
endpoints: { endpoints: {
reposPath, reposPath,
......
---
title: Remove unneeded pagination code for project importers.
merge_request: 49589
author:
type: changed
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