提交 ac710136 编写于 作者: F Filipa Lacerda

Rename storePagination to setPagination

上级 6483bc8c
......@@ -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;
......
......@@ -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),
......
......@@ -50,7 +50,7 @@ const { environmentsList } = require('./mock_data');
previousPage: 2,
};
store.storePagination(pagination);
store.setPagination(pagination);
expect(store.state.paginationInformation).toEqual(expectedResult);
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册