Bug: Hide contact panel when inboxId is not present (#530)
This commit is contained in:
committed by
GitHub
parent
d36e1b52f6
commit
f7c8358549
@@ -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'],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user