mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge branch 'master' into dependabot/npm_and_yarn/backend/aws-sdk-2.1425.0
This commit is contained in:
commit
94ebf3694d
@ -27,6 +27,7 @@
|
||||
@fetch-more-rooms="fetchRooms"
|
||||
@add-room="toggleUserSearch"
|
||||
@show-demo-options="showDemoOptions = $event"
|
||||
@open-user-tag="redirectToUserProfile($event.detail[0])"
|
||||
>
|
||||
<div
|
||||
v-if="selectedRoom && selectedRoom.roomId"
|
||||
@ -447,6 +448,13 @@ export default {
|
||||
// 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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user