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
493 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() {
2022-07-23 23:45:48 +05:30
return this.isGroupOpen ? 'chevron-down' : 'chevron-right';
2018-03-17 18:26:18 +05:30
},
},
};
</script>
<template>
2022-07-23 23:45:48 +05:30
<span class="folder-caret gl-display-inline-block gl-text-secondary gl-w-5 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>