add entity 'user' to pills badge-entity

This commit is contained in:
2021-12-10 12:35:25 +01:00
parent 57c4f2ee61
commit c7ee2cc600
4 changed files with 30 additions and 23 deletions

View File

@@ -7,26 +7,22 @@
</div>
</div>
<div class="right_actions">
<span class="badge rounded-pill bg-secondary">
{{ $t('user')}}
</span>
<badge-entity
:entity="item.result"
:options="{ displayLong: true }">
</badge-entity>
</div>
</template>
<script>
const i18n = {
messages: {
fr: {
user: 'Utilisateur' // TODO how to define other translations?
}
}
};
import BadgeEntity from 'ChillMainAssets/vuejs/_components/BadgeEntity.vue';
export default {
name: 'SuggestionUser',
components: {
BadgeEntity
},
props: ['item'],
i18n,
computed: {
hasParent() {
return this.$props.item.result.parent !== null;