gitlab-org--gitlab-foss/app/assets/javascripts/groups/components/item_caret.vue

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

28 lines
493 B
Vue
Raw Normal View History

<script>
import { GlIcon } from '@gitlab/ui';
2017-12-28 05:34:50 +00:00
export default {
2018-01-06 19:54:45 +00:00
components: {
GlIcon,
2018-01-06 19:54:45 +00:00
},
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>