From a0d212422939b9cac4ef30b96a084c20e9885e23 Mon Sep 17 00:00:00 2001 From: Eduard Smetanin Date: Thu, 22 Oct 2020 10:59:36 -0600 Subject: [PATCH] Renamed ChatWindow.vue's var 'state' to 'windowState'. --- src/ChatWindow.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ChatWindow.vue b/src/ChatWindow.vue index 72cf82ec..204de262 100644 --- a/src/ChatWindow.vue +++ b/src/ChatWindow.vue @@ -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: { @@ -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 : []