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

@@ -1,5 +1,5 @@
/*
* BADGES PERSON AND THIRDPARTY
* BADGES USER, PERSON AND THIRDPARTY
*/
span.badge-user,
@@ -167,7 +167,7 @@ div[class*='activity-'] {
}
/*
* Specific badge rounded-pill
* Pill badge by entity
*/
.badge {
&.bg-person {
@@ -175,5 +175,10 @@ div[class*='activity-'] {
background-color: $chill-ll-gray;
color: $chill-green;
}
&.bg-user {
//@extend .$chill-ll-gray;
background-color: $chill-ll-gray;
color: $chill-blue;
}
}

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;