Skip to content

Commit

Permalink
Renamed ChatWindow.vue's var 'state' to 'windowState'.
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardsmetanin committed Oct 22, 2020
1 parent cd117f2 commit a0d2124
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ChatWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ export default {
},
data() {
return {
state: this.initialState()
windowState: this.initialState()
}
},
watch: {
multipleChatsEnabled(newMultipleChatsEnabled) {
this.state = this.initialState()
this.windowState = this.initialState()
}
},
computed: {
Expand All @@ -205,25 +205,25 @@ export default {
return messages
},
showingUserList() {
return this.state == uiState.USER_LIST
return this.windowState == uiState.USER_LIST
},
showingChatList() {
return this.state == uiState.CHAT_LIST
return this.windowState == uiState.CHAT_LIST
},
showingMessageList() {
return this.state == uiState.MESSAGE_LIST
return this.windowState == uiState.MESSAGE_LIST
},
...mapState(['titleImageUrl', 'disableUserListToggle'])
},
methods: {
handleToggleUserListMessageList() {
this.state = (this.state == uiState.USER_LIST) ? uiState.MESSAGE_LIST : uiState.USER_LIST
this.windowState = (this.windowState == uiState.USER_LIST) ? uiState.MESSAGE_LIST : uiState.USER_LIST
},
handleShowChatList() {
this.state = uiState.CHAT_LIST
this.windowState = uiState.CHAT_LIST
},
handleShowMessageList() {
this.state = uiState.MESSAGE_LIST
this.windowState = uiState.MESSAGE_LIST
},
getSuggestions() {
return this.messages.length > 0 ? this.messages[this.messages.length - 1].suggestions : []
Expand Down

0 comments on commit a0d2124

Please sign in to comment.