gitlab-org--gitlab-foss/app/assets/javascripts/groups/components/item_caret.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
440 B
Vue
Raw Normal View History

<script>
import { GlIcon } from '@gitlab/ui';
2017-12-28 00:34:50 -05:00
export default {
2018-01-06 14:54:45 -05:00
components: {
GlIcon,
2018-01-06 14:54:45 -05:00
},
props: {
isGroupOpen: {
type: Boolean,
required: true,
default: false,
},
},
computed: {
iconClass() {
2017-12-28 00:34:50 -05:00
return this.isGroupOpen ? 'angle-down' : 'angle-right';
},
},
};
</script>
<template>
<span class="folder-caret gl-mr-2">
<gl-icon :size="12" :name="iconClass" />
</span>
</template>