|
@@ -26,10 +26,10 @@
|
|
<div v-if="!messages.inbox.length" class="list-group-item d-flex justify-content-center align-items-center" style="min-height: 40vh;">
|
|
<div v-if="!messages.inbox.length" class="list-group-item d-flex justify-content-center align-items-center" style="min-height: 40vh;">
|
|
<p class="lead mb-0">No messages found :(</p>
|
|
<p class="lead mb-0">No messages found :(</p>
|
|
</div>
|
|
</div>
|
|
- <div v-else v-for="(thread, index) in messages.inbox">
|
|
|
|
|
|
+ <div v-else v-for="(thread, index) in messages.inbox" :key="'dm_inbox'+index">
|
|
<a class="list-group-item text-dark text-decoration-none border-left-0 border-right-0 border-top-0" :href="'/account/direct/t/'+thread.id">
|
|
<a class="list-group-item text-dark text-decoration-none border-left-0 border-right-0 border-top-0" :href="'/account/direct/t/'+thread.id">
|
|
<div class="media d-flex align-items-center">
|
|
<div class="media d-flex align-items-center">
|
|
- <img class="mr-3 rounded-circle img-thumbnail" :src="thread.avatar" alt="Generic placeholder image" width="32px">
|
|
|
|
|
|
+ <img class="mr-3 rounded-circle img-thumbnail" :src="thread.avatar" width="32" onerror="this.onerror=null;this.src='/storage/avatars/default.jpg';" v-once>
|
|
<div class="media-body">
|
|
<div class="media-body">
|
|
<p class="mb-0">
|
|
<p class="mb-0">
|
|
<span class="font-weight-bold text-truncate">
|
|
<span class="font-weight-bold text-truncate">
|
|
@@ -62,10 +62,10 @@
|
|
<div v-if="!messages.sent.length" class="list-group-item d-flex justify-content-center align-items-center" style="min-height: 40vh;">
|
|
<div v-if="!messages.sent.length" class="list-group-item d-flex justify-content-center align-items-center" style="min-height: 40vh;">
|
|
<p class="lead mb-0">No messages found :(</p>
|
|
<p class="lead mb-0">No messages found :(</p>
|
|
</div>
|
|
</div>
|
|
- <div v-else v-for="(thread, index) in messages.sent">
|
|
|
|
|
|
+ <div v-else v-for="(thread, index) in messages.sent" :key="'dm_sent'+index">
|
|
<a class="list-group-item text-dark text-decoration-none border-left-0 border-right-0 border-top-0" href="#" @click.prevent="loadMessage(thread.id)">
|
|
<a class="list-group-item text-dark text-decoration-none border-left-0 border-right-0 border-top-0" href="#" @click.prevent="loadMessage(thread.id)">
|
|
<div class="media d-flex align-items-center">
|
|
<div class="media d-flex align-items-center">
|
|
- <img class="mr-3 rounded-circle img-thumbnail" :src="thread.avatar" alt="Generic placeholder image" width="32px">
|
|
|
|
|
|
+ <img class="mr-3 rounded-circle img-thumbnail" :src="thread.avatar" width="32" onerror="this.onerror=null;this.src='/storage/avatars/default.jpg';" v-once>
|
|
<div class="media-body">
|
|
<div class="media-body">
|
|
<p class="mb-0">
|
|
<p class="mb-0">
|
|
<span class="font-weight-bold text-truncate">
|
|
<span class="font-weight-bold text-truncate">
|
|
@@ -98,10 +98,10 @@
|
|
<div v-if="!messages.filtered.length" class="list-group-item d-flex justify-content-center align-items-center" style="min-height: 40vh;">
|
|
<div v-if="!messages.filtered.length" class="list-group-item d-flex justify-content-center align-items-center" style="min-height: 40vh;">
|
|
<p class="lead mb-0">No messages found :(</p>
|
|
<p class="lead mb-0">No messages found :(</p>
|
|
</div>
|
|
</div>
|
|
- <div v-else v-for="(thread, index) in messages.filtered">
|
|
|
|
|
|
+ <div v-else v-for="(thread, index) in messages.filtered" :key="'dm_filtered'+index">
|
|
<a class="list-group-item text-dark text-decoration-none border-left-0 border-right-0 border-top-0" href="#" @click.prevent="loadMessage(thread.id)">
|
|
<a class="list-group-item text-dark text-decoration-none border-left-0 border-right-0 border-top-0" href="#" @click.prevent="loadMessage(thread.id)">
|
|
<div class="media d-flex align-items-center">
|
|
<div class="media d-flex align-items-center">
|
|
- <img class="mr-3 rounded-circle img-thumbnail" :src="thread.avatar" alt="Generic placeholder image" width="32px">
|
|
|
|
|
|
+ <img class="mr-3 rounded-circle img-thumbnail" :src="thread.avatar" width="32" onerror="this.onerror=null;this.src='/storage/avatars/default.jpg';" v-once>
|
|
<div class="media-body">
|
|
<div class="media-body">
|
|
<p class="mb-0">
|
|
<p class="mb-0">
|
|
<span class="font-weight-bold text-truncate">
|
|
<span class="font-weight-bold text-truncate">
|
|
@@ -373,4 +373,4 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</script>
|
|
|
|
|
|
+</script>
|