Skip to content

Commit 1b903a4

Browse files
committed
feat: implement recursive component for trust depth
1 parent 79943d3 commit 1b903a4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<template>
2+
<li v-for="user in trustTree" :key="user">
3+
<span v-if="user.type === 0">{{ user.username_trusted }}</span>
4+
<span v-if="user.type === 1"><s>{{ user.username_trusted }}</s></span>
5+
<ul v-if="user.trusted">
6+
<trust-hierarchy-partial :trust-tree="user.trusted" />
7+
</ul>
8+
</li>
9+
</template>
10+
11+
<script>
12+
export default {
13+
name: 'trust-hierarchy-partial',
14+
props: ['trustTree'],
15+
setup() {
16+
return {}
17+
}
18+
}
19+
</script>

0 commit comments

Comments
 (0)