Welcome to mirror list, hosted at ThFree Co, Russian Federation.

item_caret.vue « components « groups « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef82e6d693ad79d53346910250a584c9ba2af155 (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
<script>
import { GlIcon } from '@gitlab/ui';

export default {
  components: {
    GlIcon,
  },
  props: {
    isGroupOpen: {
      type: Boolean,
      required: true,
      default: false,
    },
  },
  computed: {
    iconClass() {
      return this.isGroupOpen ? 'chevron-down' : 'chevron-right';
    },
  },
};
</script>

<template>
  <span class="folder-caret gl-display-inline-block gl-text-secondary gl-w-5 gl-mr-2">
    <gl-icon :size="12" :name="iconClass" />
  </span>
</template>