mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 00:03:51 +02:00
Fix table sorting bug
This commit is contained in:
@@ -5216,6 +5216,7 @@ speechSynthesis.getVoices();
|
||||
|
||||
case 'content-refresh':
|
||||
var contentType = content.contentType;
|
||||
console.log('content-refresh', content);
|
||||
if (contentType === 'icon') {
|
||||
if ($app.galleryDialogVisible) {
|
||||
$app.refreshVRCPlusIconsTable();
|
||||
@@ -5232,6 +5233,8 @@ speechSynthesis.getVoices();
|
||||
// hmm, utilizing this might be too spamy and cause UI to move around
|
||||
} else if (contentType === 'world') {
|
||||
// hmm
|
||||
} else if (contentType === 'created') {
|
||||
// on avatar upload
|
||||
} else {
|
||||
console.log('Unknown content-refresh', content);
|
||||
}
|
||||
@@ -8018,6 +8021,24 @@ speechSynthesis.getVoices();
|
||||
if (index === 'notification') {
|
||||
this.unseenNotifications = [];
|
||||
}
|
||||
|
||||
workerTimers.setTimeout(() => {
|
||||
// fix some weird sorting bug when disabling data tables
|
||||
if (
|
||||
typeof this.$refs.playerModerationTableRef?.sortData !==
|
||||
'undefined'
|
||||
) {
|
||||
this.$refs.playerModerationTableRef.sortData.prop = 'created';
|
||||
}
|
||||
if (
|
||||
typeof this.$refs.notificationTableRef?.sortData !== 'undefined'
|
||||
) {
|
||||
this.$refs.notificationTableRef.sortData.prop = 'created_at';
|
||||
}
|
||||
if (typeof this.$refs.friendLogTableRef?.sortData !== 'undefined') {
|
||||
this.$refs.friendLogTableRef.sortData.prop = 'created_at';
|
||||
}
|
||||
}, 100);
|
||||
};
|
||||
|
||||
$app.data.twoFactorAuthDialogVisible = false;
|
||||
@@ -30659,7 +30680,6 @@ speechSynthesis.getVoices();
|
||||
});
|
||||
var ref = API.applyGroup(args.json);
|
||||
API.currentUserGroups.set(groupId, ref);
|
||||
console.log(`Fetched group ${ref.name}`);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user