mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
add entity 'user' to pills badge-entity
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
<template>
|
||||
|
||||
<span v-if="entity.type === 'person'" class="badge rounded-pill bg-person">
|
||||
{{ $t('renderbox.person') }}
|
||||
{{ $t('person') }}
|
||||
</span>
|
||||
|
||||
<span v-if="entity.type === 'thirdparty'" class="badge rounded-pill bg-thirdparty">
|
||||
|
||||
<template v-if="options.displayLong !== true">
|
||||
{{ $t('renderbox.type.thirdparty')}}
|
||||
{{ $t('thirdparty.thirdparty')}}
|
||||
</template>
|
||||
|
||||
<i class="fa fa-fw fa-user" v-if="entity.kind === 'child'"></i>
|
||||
@@ -15,12 +14,16 @@
|
||||
<i class="fa fa-fw fa-user-md" v-else></i>
|
||||
|
||||
<template v-if="options.displayLong === true">
|
||||
<span v-if="entity.kind === 'child'">{{ $t('tparty.child')}}</span>
|
||||
<span v-else-if="entity.kind === 'company'">{{ $t('tparty.company')}}</span>
|
||||
<span v-else>{{ $t('tparty.contact')}}</span>
|
||||
<span v-if="entity.kind === 'child'">{{ $t('thirdparty.child')}}</span>
|
||||
<span v-else-if="entity.kind === 'company'">{{ $t('thirdparty.company')}}</span>
|
||||
<span v-else>{{ $t('thirdparty.contact')}}</span>
|
||||
</template>
|
||||
</span>
|
||||
|
||||
<span v-if="entity.type === 'user'" class="badge rounded-pill bg-user">
|
||||
{{ $t('user')}}
|
||||
</span>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -30,11 +33,14 @@ export default {
|
||||
i18n: {
|
||||
messages: {
|
||||
fr: {
|
||||
tparty: {
|
||||
person: "Usager",
|
||||
thirdparty: {
|
||||
thirdparty: "Tiers",
|
||||
child: "Personne de contact",
|
||||
company: "Personne morale",
|
||||
contact: "Personne physique",
|
||||
}
|
||||
},
|
||||
user: 'TMS'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user