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> <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> <p>{{ notification.name }}</p>
{{ notification.title }}</div> {{ notification.title }}</div>
</ds-space> </ds-space>

View File

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

View File

@ -80,7 +80,7 @@
@update="updateFollow" @update="updateFollow"
/> />
<base-button <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="{ v-tooltip="{
content: $t('notifications.headerMenuButton.chat'), content: $t('notifications.headerMenuButton.chat'),
placement: 'bottom-start', placement: 'bottom-start',

View File

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