debian-mirror-gitlab/app/assets/javascripts/ci/runner/components/runner_name.vue
2023-01-12 18:35:48 +00:00

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>