mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Allow user to review bulk unfriend list before processing (#834)
Co-authored-by: EbonCorvin <{ID}+{username}@users.noreply.github.com>
This commit is contained in:
@@ -22436,12 +22436,11 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$app.methods.showBulkUnfriendSelectionConfirm = function () {
|
$app.methods.showBulkUnfriendSelectionConfirm = function () {
|
||||||
var elementsTicked = 0;
|
var pendingUnfriendList = this.friendsListTable.data.reduce(
|
||||||
for (var ctx of this.friendsListTable.data) {
|
(acc, ctx, i) => (ctx.$selected && acc.push(ctx.displayName), acc),
|
||||||
if (ctx.$selected) {
|
[]
|
||||||
elementsTicked++;
|
);
|
||||||
}
|
var elementsTicked = pendingUnfriendList.length;
|
||||||
}
|
|
||||||
if (elementsTicked === 0) {
|
if (elementsTicked === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -22454,6 +22453,9 @@ speechSynthesis.getVoices();
|
|||||||
confirmButtonText: 'Confirm',
|
confirmButtonText: 'Confirm',
|
||||||
cancelButtonText: 'Cancel',
|
cancelButtonText: 'Cancel',
|
||||||
type: 'info',
|
type: 'info',
|
||||||
|
showInput: true,
|
||||||
|
inputType: 'textarea',
|
||||||
|
inputValue: pendingUnfriendList.join('\r\n'),
|
||||||
callback: (action) => {
|
callback: (action) => {
|
||||||
if (action === 'confirm') {
|
if (action === 'confirm') {
|
||||||
this.bulkUnfriendSelection();
|
this.bulkUnfriendSelection();
|
||||||
|
|||||||
Reference in New Issue
Block a user