Commit 03576ca8 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch '238854-fix-copy-sha-in-add-previous-commits-modal-doesnt-copy' into 'master'

Fix 'copy sha' in 'add previous commits' modal doesn't copy

See merge request gitlab-org/gitlab!50921
parents 10141544 babb2523
...@@ -6,7 +6,7 @@ import { GlButtonGroup, GlButton, GlTooltipDirective, GlIcon } from '@gitlab/ui' ...@@ -6,7 +6,7 @@ import { GlButtonGroup, GlButton, GlTooltipDirective, GlIcon } from '@gitlab/ui'
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import UserAvatarLink from '~/vue_shared/components/user_avatar/user_avatar_link.vue'; import UserAvatarLink from '~/vue_shared/components/user_avatar/user_avatar_link.vue';
import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; import ModalCopyButton from '~/vue_shared/components/modal_copy_button.vue';
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue'; import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
import CommitPipelineStatus from '~/projects/tree/components/commit_pipeline_status_component.vue'; import CommitPipelineStatus from '~/projects/tree/components/commit_pipeline_status_component.vue';
...@@ -39,7 +39,7 @@ import { setUrlParams } from '../../lib/utils/url_utility'; ...@@ -39,7 +39,7 @@ import { setUrlParams } from '../../lib/utils/url_utility';
export default { export default {
components: { components: {
UserAvatarLink, UserAvatarLink,
ClipboardButton, ModalCopyButton,
TimeAgoTooltip, TimeAgoTooltip,
CommitPipelineStatus, CommitPipelineStatus,
GlButtonGroup, GlButtonGroup,
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
data-testid="commit-sha-short-id" data-testid="commit-sha-short-id"
v-text="commit.short_id" v-text="commit.short_id"
/> />
<clipboard-button <modal-copy-button
:text="commit.id" :text="commit.id"
:title="__('Copy commit SHA')" :title="__('Copy commit SHA')"
class="input-group-text" class="input-group-text"
......
---
title: Fix 'copy sha' in 'add previous commits' modal doesn't copy
merge_request: 50921
author: Kev @KevSlashNull
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment