Skip to content

Commit

Permalink
*_not_found messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Nov 1, 2023
1 parent 2f2352c commit 509144a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions frontend/src/ChatList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
</v-list-item-action>
</template>
</v-list-item>
<template v-if="items.length == 0">
<v-sheet class="mx-2">{{$vuetify.locale.t('$vuetify.chats_not_found')}}</v-sheet>
</template>
<div class="chat-last-element" style="min-height: 1px; background: white"></div>
</v-list>
<ChatListContextMenu
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/MessageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
@removedFromPinned="removedFromPinned"
@shareMessage="shareMessage"
></MessageItem>
<template v-if="items.length == 0">
<v-sheet class="mx-2">{{$vuetify.locale.t('$vuetify.messages_not_found')}}</v-sheet>
</template>

<div class="message-last-element" style="min-height: 1px; background: white"></div>
<MessageItemContextMenu
ref="contextMenuRef"
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/UserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@

</v-list-item-subtitle>
</template>

</v-list-item>
<template v-if="items.length == 0">
<v-sheet class="mx-2">{{$vuetify.locale.t('$vuetify.users_not_found')}}</v-sheet>
</template>
<div class="user-last-element" style="min-height: 1px; background: white"></div>
</v-list>
</v-container>
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,8 @@ export default {
request_resend_confirmation_email_text: "Didn't get a email ? You can ",
message_edit_audio: "Add an audio",
add_media_audio_by_link: "Add an audio by link",
file_download: "Download the file"
file_download: "Download the file",
chats_not_found: "Chats not found",
users_not_found: "Users not found",
messages_not_found: "Messages not found"
}
7 changes: 5 additions & 2 deletions frontend/src/locale/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default {
search_in_messages: "Поиск по сообщениям",
video_is_not_shown: "Если вы не видите видео участника a) попробуйте перезагрузить вкладку b) используйте Firefox >= 115",
link: "Ссылка",
participants_not_found: "Пользователи не найдены",
participants_not_found: "Участники не найдены",
search_by_participants: "Поиск по участникам",
search_by_files: "Поиск по файлам",
reply: "Ответить",
Expand Down Expand Up @@ -225,5 +225,8 @@ export default {
request_resend_confirmation_email_text: "Не получили письмо ? Вы можете ",
message_edit_audio: "Добавить аудио",
add_media_audio_by_link: "Добавить аудио по ссылке",
file_download: "Скачать файл"
file_download: "Скачать файл",
chats_not_found: "Чаты не найдены",
users_not_found: "Пользователи не найдены",
messages_not_found: "Сообщения не найдены"
}

0 comments on commit 509144a

Please sign in to comment.