Bug: Hide contact panel when inboxId is not present (#530)

This commit is contained in:
Nithin David Thomas
2020-02-20 19:48:09 +05:30
committed by GitHub
parent d36e1b52f6
commit f7c8358549

View File

@@ -37,13 +37,24 @@ export default {
data() {
return {
pageTitle: this.$state,
isContactPanelOpen: false,
panelToggleState: false,
};
},
computed: {
...mapGetters({
chatList: 'getAllConversations',
}),
isContactPanelOpen: {
get() {
if (this.conversationId) {
return this.panelToggleState;
}
return false;
},
set(val) {
this.panelToggleState = val;
},
},
},
props: ['inboxId', 'conversationId'],