mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Fix bulk unfriend count
This commit is contained in:
@@ -360,6 +360,7 @@
|
|||||||
|
|
||||||
async function bulkUnfriendSelection() {
|
async function bulkUnfriendSelection() {
|
||||||
if (!selectedFriends.value.size) return;
|
if (!selectedFriends.value.size) return;
|
||||||
|
const selectedFriendsCount = selectedFriends.value.size;
|
||||||
for (const item of friendsListDisplayData.value) {
|
for (const item of friendsListDisplayData.value) {
|
||||||
if (selectedFriends.value.has(item.id)) {
|
if (selectedFriends.value.has(item.id)) {
|
||||||
console.log(`Unfriending ${item.displayName} (${item.id})`);
|
console.log(`Unfriending ${item.displayName} (${item.id})`);
|
||||||
@@ -368,7 +369,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
modalStore.alert({
|
modalStore.alert({
|
||||||
description: `Unfriended ${selectedFriends.value.size} friends.`,
|
description: `Unfriended ${selectedFriendsCount} friends.`,
|
||||||
title: 'Bulk Unfriend Complete'
|
title: 'Bulk Unfriend Complete'
|
||||||
});
|
});
|
||||||
selectedFriends.value.clear();
|
selectedFriends.value.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user