mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 11:43:48 +02:00
Fix deleting moderations and default table sorting
This commit is contained in:
@@ -80,6 +80,15 @@ export const useModerationStore = defineStore('Moderation', () => {
|
||||
userRef.$moderations = getUserModerations(ref.targetUserId);
|
||||
}
|
||||
|
||||
const array = state.playerModerationTable.data;
|
||||
const { length } = array;
|
||||
for (let i = 0; i < length; ++i) {
|
||||
if (array[i].id === ref.id) {
|
||||
array.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const D = userStore.userDialog;
|
||||
if (
|
||||
D.visible === false ||
|
||||
@@ -99,15 +108,6 @@ export const useModerationStore = defineStore('Moderation', () => {
|
||||
} else if (ref.type === 'muteChat') {
|
||||
D.isMuteChat = false;
|
||||
}
|
||||
|
||||
const array = state.playerModerationTable.data;
|
||||
const { length } = array;
|
||||
for (let i = 0; i < length; ++i) {
|
||||
if (array[i].id === ref.id) {
|
||||
array.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handlePlayerModerationDelete(args) {
|
||||
|
||||
Reference in New Issue
Block a user