diff options
3 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/environments/components/environment.js.es6 b/app/assets/javascripts/environments/components/environment.js.es6 index 6d9599e7645..d3d4efb8289 100644 --- a/app/assets/javascripts/environments/components/environment.js.es6 +++ b/app/assets/javascripts/environments/components/environment.js.es6 @@ -85,7 +85,7 @@ module.exports = Vue.component('environment-component', { this.store.storeAvailableCount(response.body.available_count); this.store.storeStoppedCount(response.body.stopped_count); this.store.storeEnvironments(response.body.environments); - this.store.storePagination(response.headers); + this.store.setPagination(response.headers); }) .then(() => { this.isLoading = false; diff --git a/app/assets/javascripts/environments/stores/environments_store.js.es6 b/app/assets/javascripts/environments/stores/environments_store.js.es6 index 252e349962e..2dc6bbe4761 100644 --- a/app/assets/javascripts/environments/stores/environments_store.js.es6 +++ b/app/assets/javascripts/environments/stores/environments_store.js.es6 @@ -43,7 +43,7 @@ class EnvironmentsStore { return filteredEnvironments; } - storePagination(pagination = {}) { + setPagination(pagination = {}) { const normalizedHeaders = gl.utils.normalizeHeaders(pagination); const paginationInformation = { perPage: parseInt(normalizedHeaders['X-PER-PAGE'], 10), diff --git a/spec/javascripts/environments/environments_store_spec.js.es6 b/spec/javascripts/environments/environments_store_spec.js.es6 index 8fd660c3edb..71c1abd0c91 100644 --- a/spec/javascripts/environments/environments_store_spec.js.es6 +++ b/spec/javascripts/environments/environments_store_spec.js.es6 @@ -50,7 +50,7 @@ const { environmentsList } = require('./mock_data'); previousPage: 2, }; - store.storePagination(pagination); + store.setPagination(pagination); expect(store.state.paginationInformation).toEqual(expectedResult); }); }); |