mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 03:33:47 +02:00
Retain dialog data when reopening same dialog
This commit is contained in:
@@ -216,6 +216,13 @@ export const useUserStore = defineStore('User', () => {
|
||||
isFavoriteWorldsLoading: false,
|
||||
isAvatarsLoading: false,
|
||||
isGroupsLoading: false,
|
||||
userFavoriteWorlds: [],
|
||||
userGroups: {
|
||||
groups: [],
|
||||
ownGroups: [],
|
||||
mutualGroups: [],
|
||||
remainingGroups: []
|
||||
},
|
||||
|
||||
worldSorting: {
|
||||
name: 'dialog.user.worlds.sorting.updated',
|
||||
@@ -771,6 +778,14 @@ export const useUserStore = defineStore('User', () => {
|
||||
});
|
||||
const D = userDialog.value;
|
||||
D.visible = true;
|
||||
if (D.id === userId) {
|
||||
uiStore.setDialogCrumbLabel(
|
||||
'user',
|
||||
D.id,
|
||||
D.ref?.displayName || D.id
|
||||
);
|
||||
return;
|
||||
}
|
||||
D.id = userId;
|
||||
D.memo = '';
|
||||
D.note = '';
|
||||
|
||||
Reference in New Issue
Block a user