Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ac710136
Commit
ac710136
authored
Feb 16, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename storePagination to setPagination
parent
6483bc8c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/environments/components/environment.js.es6
...ts/javascripts/environments/components/environment.js.es6
+1
-1
app/assets/javascripts/environments/stores/environments_store.js.es6
...javascripts/environments/stores/environments_store.js.es6
+1
-1
spec/javascripts/environments/environments_store_spec.js.es6
spec/javascripts/environments/environments_store_spec.js.es6
+1
-1
No files found.
app/assets/javascripts/environments/components/environment.js.es6
View file @
ac710136
...
@@ -85,7 +85,7 @@ module.exports = Vue.component('environment-component', {
...
@@ -85,7 +85,7 @@ module.exports = Vue.component('environment-component', {
this.store.storeAvailableCount(response.body.available_count);
this.store.storeAvailableCount(response.body.available_count);
this.store.storeStoppedCount(response.body.stopped_count);
this.store.storeStoppedCount(response.body.stopped_count);
this.store.storeEnvironments(response.body.environments);
this.store.storeEnvironments(response.body.environments);
this.store.s
tore
Pagination(response.headers);
this.store.s
et
Pagination(response.headers);
})
})
.then(() => {
.then(() => {
this.isLoading = false;
this.isLoading = false;
...
...
app/assets/javascripts/environments/stores/environments_store.js.es6
View file @
ac710136
...
@@ -43,7 +43,7 @@ class EnvironmentsStore {
...
@@ -43,7 +43,7 @@ class EnvironmentsStore {
return filteredEnvironments;
return filteredEnvironments;
}
}
s
tore
Pagination(pagination = {}) {
s
et
Pagination(pagination = {}) {
const normalizedHeaders = gl.utils.normalizeHeaders(pagination);
const normalizedHeaders = gl.utils.normalizeHeaders(pagination);
const paginationInformation = {
const paginationInformation = {
perPage: parseInt(normalizedHeaders['X-PER-PAGE'], 10),
perPage: parseInt(normalizedHeaders['X-PER-PAGE'], 10),
...
...
spec/javascripts/environments/environments_store_spec.js.es6
View file @
ac710136
...
@@ -50,7 +50,7 @@ const { environmentsList } = require('./mock_data');
...
@@ -50,7 +50,7 @@ const { environmentsList } = require('./mock_data');
previousPage: 2,
previousPage: 2,
};
};
store.s
tore
Pagination(pagination);
store.s
et
Pagination(pagination);
expect(store.state.paginationInformation).toEqual(expectedResult);
expect(store.state.paginationInformation).toEqual(expectedResult);
});
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment