mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge branch 'master' into 6500-refactor-filter-menu
This commit is contained in:
commit
68557890df
@ -27,6 +27,7 @@
|
|||||||
@fetch-more-rooms="fetchRooms"
|
@fetch-more-rooms="fetchRooms"
|
||||||
@add-room="toggleUserSearch"
|
@add-room="toggleUserSearch"
|
||||||
@show-demo-options="showDemoOptions = $event"
|
@show-demo-options="showDemoOptions = $event"
|
||||||
|
@open-user-tag="redirectToUserProfile($event.detail[0])"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-if="selectedRoom && selectedRoom.roomId"
|
v-if="selectedRoom && selectedRoom.roomId"
|
||||||
@ -447,6 +448,13 @@ export default {
|
|||||||
// this.loading = false
|
// this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
redirectToUserProfile({ user }) {
|
||||||
|
const userID = user.id
|
||||||
|
const userName = user.name.toLowerCase().replaceAll(' ', '-')
|
||||||
|
const url = `/profile/${userID}/${userName}`
|
||||||
|
this.$router.push({ path: url })
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user