mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-29 19:53:47 +02:00
Fix opening last active tab
This commit is contained in:
@@ -183,6 +183,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
const userDialog = ref({
|
||||
visible: false,
|
||||
loading: false,
|
||||
lastActiveTab: 'Info',
|
||||
id: '',
|
||||
ref: {},
|
||||
friend: {},
|
||||
@@ -900,7 +901,11 @@ export const useUserStore = defineStore('User', () => {
|
||||
} else if (D.ref.friendRequestStatus === 'outgoing') {
|
||||
D.outgoingRequest = true;
|
||||
}
|
||||
userRequest.getUser(args.params);
|
||||
userRequest.getUser(args.params).then((args1) => {
|
||||
if (args1.ref.id === D.id) {
|
||||
D.loading = false;
|
||||
}
|
||||
});
|
||||
let inCurrentWorld = false;
|
||||
if (
|
||||
locationStore.lastLocation.playerList.has(D.ref.id)
|
||||
@@ -1015,7 +1020,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
.then((args1) => {
|
||||
groupStore.handleGroupRepresented(args1);
|
||||
});
|
||||
D.loading = false;
|
||||
D.visible = true;
|
||||
applyUserDialogLocation(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user