diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-17 15:12:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-17 15:12:06 +0300 |
commit | bb5c4817e58efb92d6be81e028d55adc9626e5da (patch) | |
tree | 0c61d161d1e55ff82bbb43576e0526893d797a70 /app/assets/javascripts/jobs | |
parent | 877f19a2a14088de365f16ff4f95e5a8d96f8726 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/jobs')
-rw-r--r-- | app/assets/javascripts/jobs/components/job_app.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/assets/javascripts/jobs/components/job_app.vue b/app/assets/javascripts/jobs/components/job_app.vue index fa9ee56c049..059772e8cb9 100644 --- a/app/assets/javascripts/jobs/components/job_app.vue +++ b/app/assets/javascripts/jobs/components/job_app.vue @@ -5,7 +5,7 @@ import { throttle, isEmpty } from 'lodash'; import { mapGetters, mapState, mapActions } from 'vuex'; import CodeQualityWalkthrough from '~/code_quality_walkthrough/components/step.vue'; import { isScrolledToBottom } from '~/lib/utils/scroll_utils'; -import { sprintf } from '~/locale'; +import { __, sprintf } from '~/locale'; import CiHeader from '~/vue_shared/components/header_ci_component.vue'; import delayedJobMixin from '../mixins/delayed_job_mixin'; import EmptyState from './empty_state.vue'; @@ -126,6 +126,9 @@ export default { shouldRenderCodeQualityWalkthrough() { return this.job.status.group === 'failed-with-warnings'; }, + itemName() { + return sprintf(__('Job %{jobName}'), { jobName: this.job.name }); + }, }, watch: { // Once the job log is loaded, @@ -205,12 +208,11 @@ export default { <div class="build-header top-area"> <ci-header :status="job.status" - :item-id="job.id" :time="headerTime" :user="job.user" :has-sidebar-button="true" :should-render-triggered-label="shouldRenderTriggeredLabel" - :item-name="__('Job')" + :item-name="itemName" @clickedSidebarButton="toggleSidebar" /> </div> |