diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-14 12:09:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-14 12:09:25 +0300 |
commit | 3438be0998953aa87854371f42df3c1f47bc2544 (patch) | |
tree | 0a7ff932c9b0ddd62da8f72fb24bd657f02777de /app/assets/javascripts/pipelines | |
parent | ca1dcb848f19e854d2022587436fa5bc5f8ef933 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/pipelines')
-rw-r--r-- | app/assets/javascripts/pipelines/components/test_reports/test_case_details.vue | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/app/assets/javascripts/pipelines/components/test_reports/test_case_details.vue b/app/assets/javascripts/pipelines/components/test_reports/test_case_details.vue index 76ee6ab613b..69509c9088b 100644 --- a/app/assets/javascripts/pipelines/components/test_reports/test_case_details.vue +++ b/app/assets/javascripts/pipelines/components/test_reports/test_case_details.vue @@ -1,5 +1,6 @@ <script> -import { GlBadge, GlFriendlyWrap, GlLink, GlModal } from '@gitlab/ui'; +import { GlBadge, GlFriendlyWrap, GlLink, GlModal, GlTooltipDirective } from '@gitlab/ui'; +import ModalCopyButton from '~/vue_shared/components/modal_copy_button.vue'; import { __, n__, s__, sprintf } from '~/locale'; import CodeBlock from '~/vue_shared/components/code_block.vue'; @@ -11,6 +12,10 @@ export default { GlFriendlyWrap, GlLink, GlModal, + ModalCopyButton, + }, + directives: { + GlTooltip: GlTooltipDirective, }, props: { modalId: { @@ -57,6 +62,7 @@ export default { history: __('History'), trace: __('System output'), attachment: s__('TestReports|Attachment'), + copyTestName: s__('TestReports|Copy test name to rerun locally'), }, modalCloseButton: { text: __('Close'), @@ -85,6 +91,13 @@ export default { {{ testCase.file }} </gl-link> <span v-else>{{ testCase.file }}</span> + <modal-copy-button + :title="$options.text.copyTestName" + :text="testCase.file" + :modal-id="modalId" + category="tertiary" + class="gl-ml-1" + /> </div> </div> |