Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ci/admin/jobs_table/components/cells/runner_cell.vue')
-rw-r--r--app/assets/javascripts/ci/admin/jobs_table/components/cells/runner_cell.vue17
1 files changed, 13 insertions, 4 deletions
diff --git a/app/assets/javascripts/ci/admin/jobs_table/components/cells/runner_cell.vue b/app/assets/javascripts/ci/admin/jobs_table/components/cells/runner_cell.vue
index a76829aa129..e44f756a5c5 100644
--- a/app/assets/javascripts/ci/admin/jobs_table/components/cells/runner_cell.vue
+++ b/app/assets/javascripts/ci/admin/jobs_table/components/cells/runner_cell.vue
@@ -1,5 +1,6 @@
<script>
-import { GlLink } from '@gitlab/ui';
+import { GlLink, GlTooltipDirective } from '@gitlab/ui';
+import RunnerTypeIcon from '~/ci/runner/components/runner_type_icon.vue';
import { RUNNER_EMPTY_TEXT, RUNNER_NO_DESCRIPTION } from '../../constants';
export default {
@@ -9,6 +10,10 @@ export default {
},
components: {
GlLink,
+ RunnerTypeIcon,
+ },
+ directives: {
+ GlTooltip: GlTooltipDirective,
},
props: {
job: {
@@ -25,15 +30,19 @@ export default {
? this.job.runner.description
: this.$options.i18n.noRunnerDescription;
},
+ runnerType() {
+ return this.job.runner?.runnerType;
+ },
},
};
</script>
<template>
<div class="gl-text-truncate">
- <gl-link v-if="adminUrl" :href="adminUrl">
- {{ description }}
- </gl-link>
+ <span v-if="adminUrl">
+ <runner-type-icon :type="runnerType" class="gl-vertical-align-middle" />
+ <gl-link :href="adminUrl" data-testid="job-runner-link"> {{ description }} </gl-link>
+ </span>
<span v-else data-testid="empty-runner-text"> {{ $options.i18n.emptyRunnerText }}</span>
</div>
</template>