mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fix dialog loading state
This commit is contained in:
@@ -185,6 +185,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
|||||||
D.visible = true;
|
D.visible = true;
|
||||||
if (D.id === avatarId) {
|
if (D.id === avatarId) {
|
||||||
uiStore.setDialogCrumbLabel('avatar', D.id, D.ref?.name || D.id);
|
uiStore.setDialogCrumbLabel('avatar', D.id, D.ref?.name || D.id);
|
||||||
|
D.loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
D.loading = true;
|
D.loading = true;
|
||||||
@@ -212,6 +213,7 @@ export const useAvatarStore = defineStore('Avatar', () => {
|
|||||||
if (typeof ref2 !== 'undefined') {
|
if (typeof ref2 !== 'undefined') {
|
||||||
D.ref = ref2;
|
D.ref = ref2;
|
||||||
uiStore.setDialogCrumbLabel('avatar', D.id, D.ref?.name || D.id);
|
uiStore.setDialogCrumbLabel('avatar', D.id, D.ref?.name || D.id);
|
||||||
|
D.loading = false;
|
||||||
}
|
}
|
||||||
avatarRequest
|
avatarRequest
|
||||||
.getAvatar({ avatarId })
|
.getAvatar({ avatarId })
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ export const useGroupStore = defineStore('Group', () => {
|
|||||||
if (D.id === groupId) {
|
if (D.id === groupId) {
|
||||||
uiStore.setDialogCrumbLabel('group', D.id, D.ref?.name || D.id);
|
uiStore.setDialogCrumbLabel('group', D.id, D.ref?.name || D.id);
|
||||||
instanceStore.applyGroupDialogInstances();
|
instanceStore.applyGroupDialogInstances();
|
||||||
|
D.loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
D.loading = true;
|
D.loading = true;
|
||||||
@@ -185,6 +186,7 @@ export const useGroupStore = defineStore('Group', () => {
|
|||||||
D.inGroup = args.ref.membershipStatus === 'member';
|
D.inGroup = args.ref.membershipStatus === 'member';
|
||||||
D.ownerDisplayName = args.ref.ownerId;
|
D.ownerDisplayName = args.ref.ownerId;
|
||||||
D.visible = true;
|
D.visible = true;
|
||||||
|
D.loading = false;
|
||||||
userRequest
|
userRequest
|
||||||
.getCachedUser({
|
.getCachedUser({
|
||||||
userId: args.ref.ownerId
|
userId: args.ref.ownerId
|
||||||
|
|||||||
+2
-1
@@ -90,6 +90,7 @@ export const useWorldStore = defineStore('World', () => {
|
|||||||
if (D.id === L.worldId) {
|
if (D.id === L.worldId) {
|
||||||
uiStore.setDialogCrumbLabel('world', D.id, D.ref?.name || D.id);
|
uiStore.setDialogCrumbLabel('world', D.id, D.ref?.name || D.id);
|
||||||
instanceStore.applyWorldDialogInstances();
|
instanceStore.applyWorldDialogInstances();
|
||||||
|
D.loading = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
L.shortName = shortName;
|
L.shortName = shortName;
|
||||||
@@ -159,6 +160,7 @@ export const useWorldStore = defineStore('World', () => {
|
|||||||
D.ref?.name || D.id
|
D.ref?.name || D.id
|
||||||
);
|
);
|
||||||
D.visible = true;
|
D.visible = true;
|
||||||
|
D.loading = false;
|
||||||
D.isFavorite = favoriteStore.getCachedFavoritesByObjectId(
|
D.isFavorite = favoriteStore.getCachedFavoritesByObjectId(
|
||||||
D.id
|
D.id
|
||||||
);
|
);
|
||||||
@@ -206,7 +208,6 @@ export const useWorldStore = defineStore('World', () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
D.visible = true;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user