mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
chnage name from linkyfi to linkifiedMessage
This commit is contained in:
parent
cb39745b23
commit
024d66af9c
@ -5,13 +5,13 @@
|
||||
<span class="ml-2 mr-2">{{ message.userFirstName }} {{ message.userLastName }}</span>
|
||||
<span class="ml-2">{{ $d(new Date(message.createdAt), 'short') }}</span>
|
||||
<small class="ml-4 text-success">{{ $t('moderator') }}</small>
|
||||
<div class="mt-2" v-html="linkify"></div>
|
||||
<div class="mt-2" v-html="linkifiedMessage"></div>
|
||||
</div>
|
||||
<div v-else class="text-left is-not-moderator">
|
||||
<b-avatar 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" v-html="linkify"></div>
|
||||
<div class="mt-2" v-html="linkifiedMessage"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -28,7 +28,7 @@ export default {
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
linkify() {
|
||||
linkifiedMessage() {
|
||||
return this.message.message.replace(PATTERN, "<i><a href='$1' target='_blank'>$1</a></i>")
|
||||
},
|
||||
},
|
||||
|
||||
@ -4,14 +4,14 @@
|
||||
<b-avatar 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" v-html="linkify"></div>
|
||||
<div class="mt-2" v-html="linkifiedMessage"></div>
|
||||
</div>
|
||||
<div v-else class="is-moderator text-left">
|
||||
<b-avatar square variant="warning"></b-avatar>
|
||||
<span class="ml-2 mr-2">{{ message.userFirstName }} {{ message.userLastName }}</span>
|
||||
<span class="ml-2">{{ $d(new Date(message.createdAt), 'short') }}</span>
|
||||
<small class="ml-4 text-success">{{ $t('community.moderator') }}</small>
|
||||
<div class="mt-2" v-html="linkify"></div>
|
||||
<div class="mt-2" v-html="linkifiedMessage"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -37,7 +37,7 @@ export default {
|
||||
isNotModerator() {
|
||||
return this.storeName === this.moderationName
|
||||
},
|
||||
linkify() {
|
||||
linkifiedMessage() {
|
||||
return this.message.message.replace(PATTERN, "<i><a href='$1' target='_blank'>$1</a></i>")
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user