2017-10-04 10:10:24 -04:00
|
|
|
<script>
|
2020-08-24 11:10:11 -04:00
|
|
|
import { GlIcon } from '@gitlab/ui';
|
2017-12-28 00:34:50 -05:00
|
|
|
|
2017-10-04 10:10:24 -04:00
|
|
|
export default {
|
2018-01-06 14:54:45 -05:00
|
|
|
components: {
|
2020-08-24 11:10:11 -04:00
|
|
|
GlIcon,
|
2018-01-06 14:54:45 -05:00
|
|
|
},
|
2017-10-04 10:10:24 -04:00
|
|
|
props: {
|
|
|
|
isGroupOpen: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
iconClass() {
|
2022-06-08 14:09:19 -04:00
|
|
|
return this.isGroupOpen ? 'chevron-down' : 'chevron-right';
|
2017-10-04 10:10:24 -04:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2021-03-10 07:09:14 -05:00
|
|
|
<span class="folder-caret gl-mr-2">
|
2021-10-26 11:09:27 -04:00
|
|
|
<gl-icon :size="12" :name="iconClass" />
|
2021-03-10 07:09:14 -05:00
|
|
|
</span>
|
2017-10-04 10:10:24 -04:00
|
|
|
</template>
|