blob: 7821e60470047cebc1769e2fe84e7fb21845e0ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<script>
import { GlIcon } from '@gitlab/ui';
import { ITEM_TYPE } from '../constants';
export default {
components: {
GlIcon,
},
props: {
itemType: {
type: String,
required: true,
},
},
computed: {
iconClass() {
if (this.itemType === ITEM_TYPE.GROUP) {
return 'subgroup';
}
return 'project';
},
},
};
</script>
<template>
<span class="item-type-icon"> <gl-icon :name="iconClass" /> </span>
</template>
|