debian-mirror-gitlab/app/assets/javascripts/environments/mixins/environments_mixin.js
2017-09-10 17:25:29 +05:30

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);
});
},
},
};