mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Change store commits into 'mapMutations' on user profile
This commit is contained in:
parent
40774b0498
commit
34bb207e8e
@ -85,7 +85,7 @@
|
|||||||
content: $t('chat.userProfileButton.tooltip', { name: userName }),
|
content: $t('chat.userProfileButton.tooltip', { name: userName }),
|
||||||
placement: 'bottom-start',
|
placement: 'bottom-start',
|
||||||
}"
|
}"
|
||||||
@click="$store.commit('chat/SET_OPEN_CHAT', { showChat: true, roomID: user.id })"
|
@click="showChat({ showChat: true, roomID: user.id })"
|
||||||
>
|
>
|
||||||
{{ $t('chat.userProfileButton.label') }}
|
{{ $t('chat.userProfileButton.label') }}
|
||||||
</base-button>
|
</base-button>
|
||||||
@ -182,6 +182,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import uniqBy from 'lodash/uniqBy'
|
import uniqBy from 'lodash/uniqBy'
|
||||||
|
import { mapMutations } from 'vuex'
|
||||||
import postListActions from '~/mixins/postListActions'
|
import postListActions from '~/mixins/postListActions'
|
||||||
import PostTeaser from '~/components/PostTeaser/PostTeaser.vue'
|
import PostTeaser from '~/components/PostTeaser/PostTeaser.vue'
|
||||||
import HcFollowButton from '~/components/Button/FollowButton'
|
import HcFollowButton from '~/components/Button/FollowButton'
|
||||||
@ -291,6 +292,10 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
...mapMutations({
|
||||||
|
commitModalData: 'modal/SET_OPEN',
|
||||||
|
showChat: 'chat/SET_OPEN_CHAT',
|
||||||
|
}),
|
||||||
handleTab(tab) {
|
handleTab(tab) {
|
||||||
if (this.tabActive !== tab) {
|
if (this.tabActive !== tab) {
|
||||||
this.tabActive = tab
|
this.tabActive = tab
|
||||||
@ -366,7 +371,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async deleteUser(userdata) {
|
async deleteUser(userdata) {
|
||||||
this.$store.commit('modal/SET_OPEN', {
|
this.commitModalData({
|
||||||
name: 'delete',
|
name: 'delete',
|
||||||
data: {
|
data: {
|
||||||
userdata: userdata,
|
userdata: userdata,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user