mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 00:33:50 +02:00
avatar releaseStatus filter
This commit is contained in:
@@ -6286,6 +6286,7 @@ speechSynthesis.getVoices();
|
||||
|
||||
worldSorting: 'update',
|
||||
avatarSorting: 'update',
|
||||
avatarReleaseStatus: 'all',
|
||||
|
||||
treeData: [],
|
||||
memo: ''
|
||||
@@ -6950,6 +6951,20 @@ speechSynthesis.getVoices();
|
||||
this.setUserDialogAvatars(D.avatars);
|
||||
};
|
||||
|
||||
$app.methods.changeUserDialogAvatarReleaseStatus = function () {
|
||||
var D = this.userDialog;
|
||||
this.setUserDialogAvatars(D.avatars);
|
||||
};
|
||||
|
||||
$app.computed.userDialogAvatars = function () {
|
||||
var { avatars, avatarReleaseStatus } = this.userDialog;
|
||||
if (avatarReleaseStatus === 'public' ||
|
||||
avatarReleaseStatus === 'private') {
|
||||
return avatars.filter((avatar) => avatar.releaseStatus === avatarReleaseStatus);
|
||||
}
|
||||
return avatars;
|
||||
};
|
||||
|
||||
// App: World Dialog
|
||||
|
||||
$app.data.worldDialog = {
|
||||
|
||||
Reference in New Issue
Block a user