chore: Enable New Message Button on Contact Panel (#4681)

Fixes: #4653
This commit is contained in:
Pranav Raj S 2022-05-16 16:41:40 +05:30 committed by GitHub
parent f620bdec54
commit b8f25d77bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View file

@ -8,7 +8,6 @@
</span>
<contact-info
:show-avatar="showAvatar"
show-new-message
:contact="contact"
@panel-close="onClose"
/>

View file

@ -65,7 +65,6 @@
</div>
<div class="contact-actions">
<woot-button
v-if="showNewMessage"
v-tooltip="$t('CONTACT_PANEL.NEW_MESSAGE')"
title="$t('CONTACT_PANEL.NEW_MESSAGE')"
class="new-message"
@ -172,10 +171,6 @@ export default {
type: String,
default: '',
},
showNewMessage: {
type: Boolean,
default: false,
},
showAvatar: {
type: Boolean,
default: true,

View file

@ -52,6 +52,10 @@ export default {
},
async onSubmit(contactItem) {
await this.$store.dispatch('contacts/update', contactItem);
await this.$store.dispatch(
'contacts/fetchContactableInbox',
this.contact.id
);
},
},
};