Skip to content

Commit a0d2124

Browse files
Renamed ChatWindow.vue's var 'state' to 'windowState'.
1 parent cd117f2 commit a0d2124

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/ChatWindow.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ export default {
190190
},
191191
data() {
192192
return {
193-
state: this.initialState()
193+
windowState: this.initialState()
194194
}
195195
},
196196
watch: {
197197
multipleChatsEnabled(newMultipleChatsEnabled) {
198-
this.state = this.initialState()
198+
this.windowState = this.initialState()
199199
}
200200
},
201201
computed: {
@@ -205,25 +205,25 @@ export default {
205205
return messages
206206
},
207207
showingUserList() {
208-
return this.state == uiState.USER_LIST
208+
return this.windowState == uiState.USER_LIST
209209
},
210210
showingChatList() {
211-
return this.state == uiState.CHAT_LIST
211+
return this.windowState == uiState.CHAT_LIST
212212
},
213213
showingMessageList() {
214-
return this.state == uiState.MESSAGE_LIST
214+
return this.windowState == uiState.MESSAGE_LIST
215215
},
216216
...mapState(['titleImageUrl', 'disableUserListToggle'])
217217
},
218218
methods: {
219219
handleToggleUserListMessageList() {
220-
this.state = (this.state == uiState.USER_LIST) ? uiState.MESSAGE_LIST : uiState.USER_LIST
220+
this.windowState = (this.windowState == uiState.USER_LIST) ? uiState.MESSAGE_LIST : uiState.USER_LIST
221221
},
222222
handleShowChatList() {
223-
this.state = uiState.CHAT_LIST
223+
this.windowState = uiState.CHAT_LIST
224224
},
225225
handleShowMessageList() {
226-
this.state = uiState.MESSAGE_LIST
226+
this.windowState = uiState.MESSAGE_LIST
227227
},
228228
getSuggestions() {
229229
return this.messages.length > 0 ? this.messages[this.messages.length - 1].suggestions : []

0 commit comments

Comments
 (0)