mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
35 lines
743 B
Vue
35 lines
743 B
Vue
<template>
|
|
<div class="slot-is-not-moderator">
|
|
<div>
|
|
<b-avatar :text="initialLetters" variant="info"></b-avatar>
|
|
<span class="ml-2 mr-2">{{ message.userFirstName }} {{ message.userLastName }}</span>
|
|
<span class="ml-2">{{ $d(new Date(message.createdAt), 'short') }}</span>
|
|
<div class="mt-2">{{ message.message }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
props: {
|
|
message: {
|
|
type: Object,
|
|
default() {
|
|
return {}
|
|
},
|
|
},
|
|
},
|
|
computed: {
|
|
initialLetters() {
|
|
return `${this.message.userFirstName[0]} ${this.message.userLastName[0]}`
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.slot-is-not-moderator {
|
|
clear: both;
|
|
width: 75%;
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|