diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-20 17:22:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-20 17:22:11 +0300 |
commit | 0c872e02b2c822e3397515ec324051ff540f0cd5 (patch) | |
tree | ce2fb6ce7030e4dad0f4118d21ab6453e5938cdd /app/assets/javascripts/ci/reports/components/report_item.vue | |
parent | f7e05a6853b12f02911494c4b3fe53d9540d74fc (diff) |
Add latest changes from gitlab-org/gitlab@15-7-stable-eev15.7.0-rc42
Diffstat (limited to 'app/assets/javascripts/ci/reports/components/report_item.vue')
-rw-r--r-- | app/assets/javascripts/ci/reports/components/report_item.vue | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/app/assets/javascripts/ci/reports/components/report_item.vue b/app/assets/javascripts/ci/reports/components/report_item.vue new file mode 100644 index 00000000000..97d4ac7bf6f --- /dev/null +++ b/app/assets/javascripts/ci/reports/components/report_item.vue @@ -0,0 +1,67 @@ +<script> +import { + components, + componentNames, + iconComponents, + iconComponentNames, +} from 'ee_else_ce/ci/reports/components/issue_body'; + +export default { + name: 'ReportItem', + components: { + ...components, + ...iconComponents, + }, + props: { + issue: { + type: Object, + required: true, + }, + component: { + type: String, + required: false, + default: '', + validator: (value) => value === '' || Object.values(componentNames).includes(value), + }, + iconComponent: { + type: String, + required: false, + default: iconComponentNames.IssueStatusIcon, + validator: (value) => Object.values(iconComponentNames).includes(value), + }, + // failed || success + status: { + type: String, + required: true, + }, + statusIconSize: { + type: Number, + required: false, + default: 24, + }, + isNew: { + type: Boolean, + required: false, + default: false, + }, + showReportSectionStatusIcon: { + type: Boolean, + required: false, + default: true, + }, + }, +}; +</script> +<template> + <li class="report-block-list-issue align-items-center" data-qa-selector="report_item_row"> + <component + :is="iconComponent" + v-if="showReportSectionStatusIcon" + :status="status" + :status-icon-size="statusIconSize" + class="gl-mr-2" + /> + + <component :is="component" v-if="component" :issue="issue" :status="status" :is-new="isNew" /> + </li> +</template> |