From 16ddc88d64cf3a9d95530479f7fea6c4c812f106 Mon Sep 17 00:00:00 2001 From: DorraJaouad Date: Fri, 26 Apr 2024 20:09:43 +0200 Subject: [PATCH] fix: move more computed props to composable and rename this latter. Signed-off-by: DorraJaouad --- .../MessagesGroup/Message/Message.vue | 4 -- .../MessageButtonsBar/MessageButtonsBar.vue | 33 +++++++---------- .../Message/MessagePart/MessageBody.vue | 17 +++++---- src/components/Quote.vue | 19 +++++----- src/composables/useConversationInfo.js | 10 +++++ .../{useEditMessage.js => useMessageInfo.js} | 37 +++++++++++++------ 6 files changed, 66 insertions(+), 54 deletions(-) rename src/composables/{useEditMessage.js => useMessageInfo.js} (68%) diff --git a/src/components/MessagesList/MessagesGroup/Message/Message.vue b/src/components/MessagesList/MessagesGroup/Message/Message.vue index 9977fbd51632..aa4e69950d45 100644 --- a/src/components/MessagesList/MessagesGroup/Message/Message.vue +++ b/src/components/MessagesList/MessagesGroup/Message/Message.vue @@ -462,10 +462,6 @@ export default { && this.messageType !== 'command' && this.messageType !== 'comment_deleted' }, - - isFileShareOnly() { - return Object.keys(Object(this.messageParameters)).some(key => key.startsWith('file')) && this.message === '{file}' - }, }, mounted() { diff --git a/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageButtonsBar.vue b/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageButtonsBar.vue index 9e325d9302cc..3c46f85dbdee 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageButtonsBar.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageButtonsBar.vue @@ -101,7 +101,7 @@ {{ t('spreed', 'Edit message') }} -