debian-mirror-gitlab/app/assets/javascripts/environments/mixins/environments_mixin.js

16 lines
423 B
JavaScript
Raw Normal View History

2017-09-10 17:25:29 +05:30
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);
});
},
},
};