Backport EE changes. Service method should be `get` and not `all`

This commit is contained in:
Filipa Lacerda 2017-03-02 17:36:30 +00:00
parent 8ec8b2da66
commit ee886f9344
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ module.exports = Vue.component('environment-component', {
this.isLoading = true;
return service.all()
return service.get()
.then(resp => ({
headers: resp.headers,
body: resp.json(),

View File

@ -92,7 +92,7 @@ module.exports = Vue.component('environment-folder-view', {
this.isLoading = true;
return service.all()
return service.get()
.then(resp => ({
headers: resp.headers,
body: resp.json(),

View File

@ -5,7 +5,7 @@ class EnvironmentsService {
this.environments = Vue.resource(endpoint);
}
all() {
get() {
return this.environments.get();
}
}