debian-mirror-gitlab/app/assets/javascripts/groups/components/item_caret.vue
2021-04-17 20:07:23 +05:30

27 lines
461 B
Vue

<script>
import { GlIcon } from '@gitlab/ui';
export default {
components: {
GlIcon,
},
props: {
isGroupOpen: {
type: Boolean,
required: true,
default: false,
},
},
computed: {
iconClass() {
return this.isGroupOpen ? 'angle-down' : 'angle-right';
},
},
};
</script>
<template>
<span class="folder-caret gl-mr-2">
<gl-icon :size="10" :name="iconClass" use-deprecated-sizes />
</span>
</template>