Commit ee886f93 authored by Filipa Lacerda's avatar Filipa Lacerda

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

parent 8ec8b2da
...@@ -78,7 +78,7 @@ module.exports = Vue.component('environment-component', { ...@@ -78,7 +78,7 @@ module.exports = Vue.component('environment-component', {
this.isLoading = true; this.isLoading = true;
return service.all() return service.get()
.then(resp => ({ .then(resp => ({
headers: resp.headers, headers: resp.headers,
body: resp.json(), body: resp.json(),
......
...@@ -92,7 +92,7 @@ module.exports = Vue.component('environment-folder-view', { ...@@ -92,7 +92,7 @@ module.exports = Vue.component('environment-folder-view', {
this.isLoading = true; this.isLoading = true;
return service.all() return service.get()
.then(resp => ({ .then(resp => ({
headers: resp.headers, headers: resp.headers,
body: resp.json(), body: resp.json(),
......
...@@ -5,7 +5,7 @@ class EnvironmentsService { ...@@ -5,7 +5,7 @@ class EnvironmentsService {
this.environments = Vue.resource(endpoint); this.environments = Vue.resource(endpoint);
} }
all() { get() {
return this.environments.get(); return this.environments.get();
} }
} }
......
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