debian-mirror-gitlab/app/assets/javascripts/groups/components/item_caret.vue
2019-02-15 15:39:39 +05:30

25 lines
437 B
Vue

<script>
import icon from '~/vue_shared/components/icon.vue';
export default {
components: {
icon,
},
props: {
isGroupOpen: {
type: Boolean,
required: true,
default: false,
},
},
computed: {
iconClass() {
return this.isGroupOpen ? 'angle-down' : 'angle-right';
},
},
};
</script>
<template>
<span class="folder-caret"> <icon :size="12" :name="iconClass" /> </span>
</template>