diff options
Diffstat (limited to 'app/assets/javascripts/ml/experiment_tracking/routes/candidates/show/components/candidate_detail_row.vue')
-rw-r--r-- | app/assets/javascripts/ml/experiment_tracking/routes/candidates/show/components/candidate_detail_row.vue | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app/assets/javascripts/ml/experiment_tracking/routes/candidates/show/components/candidate_detail_row.vue b/app/assets/javascripts/ml/experiment_tracking/routes/candidates/show/components/candidate_detail_row.vue new file mode 100644 index 00000000000..20c5248052b --- /dev/null +++ b/app/assets/javascripts/ml/experiment_tracking/routes/candidates/show/components/candidate_detail_row.vue @@ -0,0 +1,41 @@ +<script> +import { GlLink } from '@gitlab/ui'; + +export default { + name: 'CandidateDetailRow', + components: { + GlLink, + }, + props: { + label: { + type: String, + required: true, + }, + text: { + type: [String, Number], + required: true, + }, + href: { + type: String, + required: false, + default: '', + }, + sectionLabel: { + type: String, + required: false, + default: '', + }, + }, +}; +</script> + +<template> + <tr> + <td class="gl-text-secondary gl-font-weight-bold">{{ sectionLabel }}</td> + <td class="gl-font-weight-bold">{{ label }}</td> + <td> + <gl-link v-if="href" :href="href">{{ text }}</gl-link> + <template v-else>{{ text }}</template> + </td> + </tr> +</template> |