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