debian-mirror-gitlab/app/assets/javascripts/ci/runner/components/runner_groups.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
840 B
Vue
Raw Normal View History

2022-04-04 11:22:00 +05:30
<script>
import RunnerAssignedItem from './runner_assigned_item.vue';
export default {
components: {
RunnerAssignedItem,
},
props: {
runner: {
type: Object,
required: true,
},
},
computed: {
groups() {
return this.runner.groups?.nodes || [];
},
},
};
</script>
<template>
<div class="gl-border-t-gray-100 gl-border-t-1 gl-border-t-solid">
<h3 class="gl-font-lg gl-mt-5 gl-mb-0">{{ s__('Runners|Assigned Group') }}</h3>
<template v-if="groups.length">
<runner-assigned-item
v-for="group in groups"
:key="group.id"
:href="group.webUrl"
:name="group.name"
:full-name="group.fullName"
:avatar-url="group.avatarUrl"
/>
</template>
2023-03-04 22:38:38 +05:30
<span v-else class="gl-text-secondary">{{ __('None') }}</span>
2022-04-04 11:22:00 +05:30
</div>
</template>