parent
f620bdec54
commit
b8f25d77bf
3 changed files with 4 additions and 6 deletions
|
@ -8,7 +8,6 @@
|
||||||
</span>
|
</span>
|
||||||
<contact-info
|
<contact-info
|
||||||
:show-avatar="showAvatar"
|
:show-avatar="showAvatar"
|
||||||
show-new-message
|
|
||||||
:contact="contact"
|
:contact="contact"
|
||||||
@panel-close="onClose"
|
@panel-close="onClose"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -65,7 +65,6 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="contact-actions">
|
<div class="contact-actions">
|
||||||
<woot-button
|
<woot-button
|
||||||
v-if="showNewMessage"
|
|
||||||
v-tooltip="$t('CONTACT_PANEL.NEW_MESSAGE')"
|
v-tooltip="$t('CONTACT_PANEL.NEW_MESSAGE')"
|
||||||
title="$t('CONTACT_PANEL.NEW_MESSAGE')"
|
title="$t('CONTACT_PANEL.NEW_MESSAGE')"
|
||||||
class="new-message"
|
class="new-message"
|
||||||
|
@ -172,10 +171,6 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
showNewMessage: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
showAvatar: {
|
showAvatar: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
|
|
|
@ -52,6 +52,10 @@ export default {
|
||||||
},
|
},
|
||||||
async onSubmit(contactItem) {
|
async onSubmit(contactItem) {
|
||||||
await this.$store.dispatch('contacts/update', contactItem);
|
await this.$store.dispatch('contacts/update', contactItem);
|
||||||
|
await this.$store.dispatch(
|
||||||
|
'contacts/fetchContactableInbox',
|
||||||
|
this.contact.id
|
||||||
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue