rename chat-modul to chat

This commit is contained in:
Ulf Gebhardt 2023-07-06 12:30:50 +02:00
parent 216f1093c9
commit 38d555bdf8
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
4 changed files with 10 additions and 10 deletions

View File

@ -37,7 +37,7 @@
<ds-space>
<div class="notifications-menu-popover-item" @click="$store.commit('chat-modul/SET_OPEN_CHAT_MODUL', { showChatModul: true , roomID: notification.roomid })">
<div class="notifications-menu-popover-item" @click="$store.commit('chat/SET_OPEN_CHAT', { showChat: true , roomID: notification.roomid })">
<p>{{ notification.name }}</p>
{{ notification.title }}</div>
</ds-space>

View File

@ -13,10 +13,10 @@
<client-only>
<modal />
</client-only>
<div v-if="$store.getters['chat-modul/showChatModul'].showChatModul" class="chat-modul" >
<div v-if="$store.getters['chat/showChat'].showChat" class="chat-modul" >
<ds-text align="right" class="close">
RoomID: {{ $store.getters['chat-modul/showChatModul'].roomID }}
<ds-button @click="$store.commit('chat-modul/SET_OPEN_CHAT_MODUL', { showChatModul: false , roomID: 'u0' })">x</ds-button>
RoomID: {{ $store.getters['chat/showChat'].roomID }}
<ds-button @click="$store.commit('chat/SET_OPEN_CHAT', { showChat: false , roomID: 'u0' })">x</ds-button>
</ds-text>
<chat-modul :singleRoom="true"/>
</div>

View File

@ -80,7 +80,7 @@
@update="updateFollow"
/>
<base-button
@click="$store.commit('chat-modul/SET_OPEN_CHAT_MODUL', { showChatModul: true , roomID: user.id })"
@click="$store.commit('chat/SET_OPEN_CHAT', { showChat: true , roomID: user.id })"
v-tooltip="{
content: $t('notifications.headerMenuButton.chat'),
placement: 'bottom-start',

View File

@ -1,20 +1,20 @@
export const state = () => {
return {
showChatModul: false,
showChat: false,
roomID: 'u0'
}
}
export const mutations = {
SET_OPEN_CHAT_MODUL(state, ctx) {
console.log('SET_OPEN_CHAT_MODUL', ctx)
state.showChatModul = ctx.showChatModul || false
SET_OPEN_CHAT(state, ctx) {
console.log('SET_OPEN_CHAT', ctx)
state.showChat = ctx.showChat || false
state.roomID = ctx.roomID || 'u0'
},
}
export const getters = {
showChatModul(state) {
showChat(state) {
console.log('getter', state)
return state
},