summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/reports/store/mutations.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/reports/store/mutations.js')
-rw-r--r--app/assets/javascripts/reports/store/mutations.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/assets/javascripts/reports/store/mutations.js b/app/assets/javascripts/reports/store/mutations.js
index 3851f2f5799..4ff9b10f28c 100644
--- a/app/assets/javascripts/reports/store/mutations.js
+++ b/app/assets/javascripts/reports/store/mutations.js
@@ -17,6 +17,7 @@ export default {
Vue.set(state.summary, 'resolved', response.summary.resolved);
Vue.set(state.summary, 'failed', response.summary.failed);
+ state.status = response.status;
state.reports = response.suites;
},
@@ -24,4 +25,13 @@ export default {
state.isLoading = false;
state.hasError = true;
},
+ [types.SET_ISSUE_MODAL_DATA](state, payload) {
+ Vue.set(state.modal, 'title', payload.issue.name);
+
+ Object.keys(payload.issue).forEach((key) => {
+ if (Object.prototype.hasOwnProperty.call(state.modal.data, key)) {
+ Vue.set(state.modal.data[key], 'value', payload.issue[key]);
+ }
+ });
+ },
};