debian-mirror-gitlab/app/assets/javascripts/groups/components/item_caret.vue

28 lines
461 B
Vue
Raw Normal View History

2018-03-17 18:26:18 +05:30
<script>
2020-11-24 15:15:51 +05:30
import { GlIcon } from '@gitlab/ui';
2018-03-17 18:26:18 +05:30
export default {
components: {
2020-11-24 15:15:51 +05:30
GlIcon,
2018-03-17 18:26:18 +05:30
},
props: {
isGroupOpen: {
type: Boolean,
required: true,
default: false,
},
},
computed: {
iconClass() {
return this.isGroupOpen ? 'angle-down' : 'angle-right';
},
},
};
</script>
<template>
2021-04-17 20:07:23 +05:30
<span class="folder-caret gl-mr-2">
<gl-icon :size="10" :name="iconClass" use-deprecated-sizes />
</span>
2018-03-17 18:26:18 +05:30
</template>