debian-mirror-gitlab/app/assets/javascripts/ci/runner/components/runner_name.vue
2023-01-13 15:02:22 +05:30

20 lines
382 B
Vue

<script>
import { getIdFromGraphQLId } from '~/graphql_shared/utils';
export default {
props: {
runner: {
type: Object,
required: true,
},
},
methods: {
getIdFromGraphQLId,
},
};
</script>
<template>
<span class="gl-font-weight-bold gl-vertical-align-middle"
>#{{ getIdFromGraphQLId(runner.id) }} ({{ runner.shortSha }})</span
>
</template>