mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 03:33:47 +02:00
Show mutual friends for all users
This commit is contained in:
@@ -516,7 +516,7 @@
|
||||
|
||||
<el-tab-pane
|
||||
name="Mutual Friends"
|
||||
v-if="userDialog.isFriend"
|
||||
v-if="userDialog.id !== currentUser.id"
|
||||
:label="t('dialog.user.mutual_friends.header')"
|
||||
lazy>
|
||||
<div style="display: flex; align-items: center; justify-content: space-between">
|
||||
|
||||
@@ -961,18 +961,14 @@ export const useUserStore = defineStore('User', () => {
|
||||
D.isShowAvatar = true;
|
||||
}
|
||||
});
|
||||
if (D.isFriend) {
|
||||
userRequest
|
||||
.getMutualCounts({ userId })
|
||||
.then((args) => {
|
||||
if (args.params.userId === D.id) {
|
||||
D.mutualFriendCount =
|
||||
args.json.friends;
|
||||
D.mutualGroupCount =
|
||||
args.json.groups;
|
||||
}
|
||||
});
|
||||
}
|
||||
userRequest
|
||||
.getMutualCounts({ userId })
|
||||
.then((args) => {
|
||||
if (args.params.userId === D.id) {
|
||||
D.mutualFriendCount = args.json.friends;
|
||||
D.mutualGroupCount = args.json.groups;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
D.previousDisplayNames =
|
||||
currentUser.value.pastDisplayNames;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
:prefix-icon="Search"
|
||||
clearable
|
||||
placeholder="Search Friend"></el-input>
|
||||
<el-popover placement="bottom" trigger="click" :width="300">
|
||||
<el-popover placement="bottom" trigger="click" :width="310">
|
||||
<template #reference>
|
||||
<div>
|
||||
<el-tooltip :content="t('view.charts.instance_activity.settings.header')" placement="top">
|
||||
|
||||
Reference in New Issue
Block a user