debian-mirror-gitlab/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

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">
2021-12-11 22:18:48 +05:30
<gl-icon :size="12" :name="iconClass" />
2021-04-17 20:07:23 +05:30
</span>
2018-03-17 18:26:18 +05:30
</template>