Backport EE changes. Service method should be `get` and not `all`
This commit is contained in:
parent
8ec8b2da66
commit
ee886f9344
|
@ -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(),
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -5,7 +5,7 @@ class EnvironmentsService {
|
|||
this.environments = Vue.resource(endpoint);
|
||||
}
|
||||
|
||||
all() {
|
||||
get() {
|
||||
return this.environments.get();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue