Fix only part of username showing up in OrganizerPickerWrapper

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-08-01 11:03:48 +02:00
parent 68d3315999
commit e26c431350
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -77,12 +77,12 @@
</div> </div>
<div class="media-content" v-if="actor.name"> <div class="media-content" v-if="actor.name">
<p class="is-4">{{ actor.name }}</p> <p class="is-4">{{ actor.name }}</p>
<p class="is-6 has-text-grey"> <p class="is-6 has-text-grey-dark">
{{ `@${actor.preferredUsername}` }} {{ `@${usernameWithDomain(actor)}` }}
</p> </p>
</div> </div>
<div class="media-content" v-else> <div class="media-content" v-else>
{{ `@${actor.preferredUsername}` }} {{ `@${usernameWithDomain(actor)}` }}
</div> </div>
</div> </div>
</b-checkbox> </b-checkbox>
@ -167,6 +167,8 @@ export default class OrganizerPickerWrapper extends Vue {
isComponentModalActive = false; isComponentModalActive = false;
usernameWithDomain = usernameWithDomain;
@Prop({ type: Array, required: false, default: () => [] }) @Prop({ type: Array, required: false, default: () => [] })
contacts!: IActor[]; contacts!: IActor[];
members: Paginate<IMember> = { elements: [], total: 0 }; members: Paginate<IMember> = { elements: [], total: 0 };