mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
rename chat-modul to chat
This commit is contained in:
parent
216f1093c9
commit
38d555bdf8
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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
|
||||
},
|
||||
Loading…
x
Reference in New Issue
Block a user