Skip to content

Commit

Permalink
Fixed remaining rebase issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardsmetanin committed Oct 21, 2020
1 parent 90eb271 commit cd117f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/ChatWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:image-url="showingChatList ? chatListImageUrl : titleImageUrl"
@close="$emit('close')"
:colors="colors"
:disable-user-list-toggle="disableUserListToggle || showingChatList"
:disable-list-toggle="disableUserListToggle || showingChatList"
@toggleUserListMessageList="handleToggleUserListMessageList"
@showChatList="handleShowChatList"
>
Expand Down Expand Up @@ -77,6 +77,7 @@
</template>

<script>
import {mapState} from './store/'
import Header from './Header.vue'
import MessageList from './MessageList.vue'
import UserInput from './UserInput.vue'
Expand Down Expand Up @@ -211,7 +212,8 @@ export default {
},
showingMessageList() {
return this.state == uiState.MESSAGE_LIST
}
},
...mapState(['titleImageUrl', 'disableUserListToggle'])
},
methods: {
handleToggleUserListMessageList() {
Expand Down
8 changes: 6 additions & 2 deletions src/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
<slot>
<img v-if="titleImageUrl" class="sc-header--img" :src="titleImageUrl" alt="" />
<div v-if="!disableUserListToggle" class="sc-header--title enabled" @click="toggleUserListMessageList">
<div v-if="!disableListToggle" class="sc-header--title enabled" @click="toggleUserListMessageList">
{{ title }}
</div>
<div v-else class="sc-header--title">{{ title }}</div>
Expand Down Expand Up @@ -47,9 +47,13 @@ export default {
type: Boolean,
default: false
},
disableListToggle: {
type: Boolean,
required: true
},
},
computed: {
...mapState(['disableUserListToggle', 'titleImageUrl', 'showCloseButton'])
...mapState(['titleImageUrl', 'showCloseButton'])
},
methods: {
toggleUserListMessageList() {
Expand Down
1 change: 0 additions & 1 deletion src/Launcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<img v-else class="sc-open-icon" :src="icons.open.img" :alt="icons.open.name" />
</div>
<ChatWindow
:multiple-chats="multipleChats"
:message-list="messageList"
:on-user-input-submit="onMessageWasSent"
:participants="participants"
Expand Down

0 comments on commit cd117f2

Please sign in to comment.