mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Add support for hasSharedConnectionsOptOut
This commit is contained in:
@@ -435,6 +435,20 @@
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x-friend-item" @click="toggleSharedConnectionsOptOut">
|
||||
<div class="detail">
|
||||
<span class="name">{{ t('dialog.user.info.show_mutual_friends') }}</span>
|
||||
<span
|
||||
v-if="!currentUser.hasSharedConnectionsOptOut"
|
||||
class="extra"
|
||||
style="color: #67c23a"
|
||||
>{{ t('dialog.user.info.avatar_cloning_allow') }}</span
|
||||
>
|
||||
<span v-else class="extra" style="color: #f56c6c">{{
|
||||
t('dialog.user.info.avatar_cloning_deny')
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="x-friend-item" style="cursor: default">
|
||||
@@ -2164,6 +2178,9 @@
|
||||
}
|
||||
|
||||
async function getUserMutualFriends(userId) {
|
||||
if (currentUser.value.hasSharedConnectionsOptOut) {
|
||||
return;
|
||||
}
|
||||
userDialog.value.isMutualFriendsLoading = true;
|
||||
userDialog.value.mutualFriends = [];
|
||||
const params = {
|
||||
@@ -2414,6 +2431,12 @@
|
||||
});
|
||||
}
|
||||
|
||||
function toggleSharedConnectionsOptOut() {
|
||||
userRequest.saveCurrentUser({
|
||||
hasSharedConnectionsOptOut: !currentUser.value.hasSharedConnectionsOptOut
|
||||
});
|
||||
}
|
||||
|
||||
function resetHome() {
|
||||
ElMessageBox.confirm('Continue? Reset Home', 'Confirm', {
|
||||
confirmButtonText: 'Confirm',
|
||||
|
||||
Reference in New Issue
Block a user