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