diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-01 06:13:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-01 06:13:24 +0300 |
commit | e5f18589063c991e0fb20fb1566060cddb72f649 (patch) | |
tree | 85b0eeaf5934c21d2a007cb4e5cdbfdbe1faea02 /app/assets/javascripts/merge_requests | |
parent | 0dc67904c1b8b01e7406fc510cf432c5bfc919fb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/merge_requests')
-rw-r--r-- | app/assets/javascripts/merge_requests/components/sticky_header.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/assets/javascripts/merge_requests/components/sticky_header.vue b/app/assets/javascripts/merge_requests/components/sticky_header.vue index 6e24e0d22e3..71e214d4fc7 100644 --- a/app/assets/javascripts/merge_requests/components/sticky_header.vue +++ b/app/assets/javascripts/merge_requests/components/sticky_header.vue @@ -7,6 +7,8 @@ import { GlSafeHtmlDirective, } from '@gitlab/ui'; import { mapGetters, mapState } from 'vuex'; +import { TYPE_MERGE_REQUEST } from '~/graphql_shared/constants'; +import { convertToGraphQLId } from '~/graphql_shared/utils'; import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; import { isLoggedIn } from '~/lib/utils/common_utils'; import StatusBox from '~/issuable/components/status_box.vue'; @@ -47,7 +49,7 @@ export default { doneFetchingBatchDiscussions: (state) => state.notes.doneFetchingBatchDiscussions, }), issuableId() { - return `${this.getNoteableData.id}`; + return convertToGraphQLId(TYPE_MERGE_REQUEST, this.getNoteableData.id); }, issuableIid() { return `${this.getNoteableData.iid}`; @@ -114,8 +116,8 @@ export default { <template #source> <gl-link :title="getNoteableData.source_branch" + :href="getNoteableData.source_branch_path" class="gl-text-blue-500! gl-font-monospace gl-bg-blue-50 gl-rounded-base gl-font-sm gl-px-2 gl-text-truncate gl-max-w-26" - href="/gitlab-org/gitlab-test/-/tree/master-change-vue-comp" > {{ getNoteableData.source_branch }} </gl-link> @@ -123,8 +125,8 @@ export default { <template #target> <gl-link :title="getNoteableData.target_branch" + :href="getNoteableData.target_branch_path" class="gl-text-blue-500! gl-font-monospace gl-bg-blue-50 gl-rounded-base gl-font-sm gl-px-2 gl-text-truncate gl-max-w-26 gl-ml-2" - href="/gitlab-org/gitlab-test/-/tree/master-change-vue-comp" > {{ getNoteableData.target_branch }} </gl-link> |