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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pageTitle: this.$state,
|
pageTitle: this.$state,
|
||||||
isContactPanelOpen: false,
|
panelToggleState: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
chatList: 'getAllConversations',
|
chatList: 'getAllConversations',
|
||||||
}),
|
}),
|
||||||
|
isContactPanelOpen: {
|
||||||
|
get() {
|
||||||
|
if (this.conversationId) {
|
||||||
|
return this.panelToggleState;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.panelToggleState = val;
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
props: ['inboxId', 'conversationId'],
|
props: ['inboxId', 'conversationId'],
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user