summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_merge_request_widget/extensions/accessibility/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/vue_merge_request_widget/extensions/accessibility/index.js')
-rw-r--r--app/assets/javascripts/vue_merge_request_widget/extensions/accessibility/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_merge_request_widget/extensions/accessibility/index.js b/app/assets/javascripts/vue_merge_request_widget/extensions/accessibility/index.js
index f14e80d0be6..22e907f7e48 100644
--- a/app/assets/javascripts/vue_merge_request_widget/extensions/accessibility/index.js
+++ b/app/assets/javascripts/vue_merge_request_widget/extensions/accessibility/index.js
@@ -40,6 +40,9 @@ export default {
return numOfResults === 0 ? successText : warningText;
},
+ shouldCollapse() {
+ return this.collapsedData?.summary?.errored > 0;
+ },
fetchCollapsedData() {
return axios.get(this.accessibilityReportPath);
},