gitlab-org--gitlab-foss/app/assets/javascripts/environments/mixins/environments_mixin.js
2017-07-12 14:47:09 +00:00

15 lines
423 B
JavaScript

export default {
methods: {
saveData(resp) {
const headers = resp.headers;
return resp.json().then((response) => {
this.isLoading = false;
this.store.storeAvailableCount(response.available_count);
this.store.storeStoppedCount(response.stopped_count);
this.store.storeEnvironments(response.environments);
this.store.setPagination(headers);
});
},
},
};