Rename tag 'chat-module' to 'chat'

This commit is contained in:
Wolfgang Huß 2023-07-18 14:41:10 +02:00
parent 785a027989
commit cc4cb8af46
2 changed files with 9 additions and 4 deletions

View File

@ -14,9 +14,9 @@
<modal />
</client-only>
<div v-if="$store.getters['chat/showChat'].showChat" class="chat-modul">
<chat-module
v-on:close-single-room="closeSingleRoom"
<chat
:singleRoomId="$store.getters['chat/showChat'].roomID"
@close-single-room="closeSingleRoom"
/>
</div>
</div>
@ -27,14 +27,14 @@ import mobile from '~/mixins/mobile'
import HeaderMenu from '~/components/HeaderMenu/HeaderMenu'
import Modal from '~/components/Modal'
import PageFooter from '~/components/PageFooter/PageFooter'
import ChatModule from '~/components/Chat/Chat.vue'
import Chat from '~/components/Chat/Chat.vue'
export default {
components: {
HeaderMenu,
Modal,
PageFooter,
ChatModule,
Chat,
},
mixins: [seo, mobile()],
methods: {

View File

@ -14,6 +14,11 @@ export default {
mounted() {
this.showChat({ showChat: false, roomID: null })
},
data() {
return {
// former,
}
},
methods: {
...mapMutations({
showChat: 'chat/SET_OPEN_CHAT',