Replace blank items in the conversation list with the default title

This commit is contained in:
Rafi
2023-04-01 21:22:44 +08:00
parent 4a1adf6d00
commit f20a3562f3

View File

@@ -129,10 +129,15 @@ onMounted(async () => {
> >
<v-list> <v-list>
<v-list-item <v-list-item
prepend-icon="face"
:title="$auth.user.username" :title="$auth.user.username"
:subtitle="$auth.user.email" :subtitle="$auth.user.email"
> >
<template v-slot:prepend>
<v-icon
icon="face"
size="x-large"
></v-icon>
</template>
<template v-slot:append> <template v-slot:append>
<v-menu> <v-menu>
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
@@ -205,7 +210,7 @@ onMounted(async () => {
:to="conversation.id ? `/${conversation.id}` : undefined" :to="conversation.id ? `/${conversation.id}` : undefined"
v-bind="props" v-bind="props"
> >
<v-list-item-title>{{ conversation.topic }}</v-list-item-title> <v-list-item-title>{{ conversation.topic !== "" ? conversation.topic : $t('defaultConversationTitle') }}</v-list-item-title>
<template v-slot:append> <template v-slot:append>
<div <div
v-show="isHovering && conversation.id" v-show="isHovering && conversation.id"