All files / app/assets/javascripts/jira_connect/subscriptions/components group_item_name.vue

100% Statements 1/1
50% Branches 1/2
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 30 31 32 33 34 35 36 37 38 39 40 41 42                                      66x                                            
<script>
import { GlAvatar, GlIcon } from '@gitlab/ui';
import { AVATAR_SHAPE_OPTION_RECT } from '~/vue_shared/constants';
 
export default {
  components: {
    GlAvatar,
    GlIcon,
  },
  props: {
    group: {
      type: Object,
      required: true,
    },
  },
  AVATAR_SHAPE_OPTION_RECT,
};
</script>
 
<template>
  <div class="gl-display-flex gl-align-items-center">
    <gl-icon name="folder-o" class="gl-mr-3" />
    <div class="gl-display-none gl-flex-shrink-0 gl-sm-display-flex gl-mr-3">
      <gl-avatar
        :size="32"
        :shape="$options.AVATAR_SHAPE_OPTION_RECT"
        :entity-name="group.name"
        :src="group.avatar_url"
      />
    </div>
 
    <div>
      <span class="gl-mr-3 gl-text-gray-900! gl-font-weight-bold">
        {{ group.full_name }}
      </span>
      <div v-if="group.description">
        <p class="gl-mt-2! gl-mb-0 gl-text-gray-600" v-text="group.description"></p>
      </div>
    </div>
  </div>
</template>