summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ci/pipeline_schedules/components/table/cells/pipeline_schedule_owner.vue
blob: e7fa94eb7fcbae4a191f13e5570130360bc35123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script>
import { GlAvatar, GlAvatarLink } from '@gitlab/ui';

export default {
  components: {
    GlAvatar,
    GlAvatarLink,
  },
  props: {
    schedule: {
      type: Object,
      required: true,
    },
  },
  computed: {
    owner() {
      return this.schedule.owner;
    },
  },
};
</script>

<template>
  <div>
    <gl-avatar-link :href="owner.webPath" :title="owner.name" class="gl-ml-3">
      <gl-avatar :size="32" :src="owner.avatarUrl" />
    </gl-avatar-link>
  </div>
</template>