mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Small fixes
This commit is contained in:
@@ -1046,7 +1046,7 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
let friendCount = 0;
|
let friendCount = 0;
|
||||||
const playersInInstance = locationStore.lastLocation.playerList;
|
const playersInInstance = locationStore.lastLocation.playerList;
|
||||||
const cachedCurrentUser = cachedUsers.get(currentUser.value.id);
|
const cachedCurrentUser = cachedUsers.get(currentUser.value.id);
|
||||||
const currentLocation = cachedCurrentUser.$location.tag;
|
const currentLocation = cachedCurrentUser?.$location?.tag;
|
||||||
if (!L.isOffline && currentLocation === L.tag) {
|
if (!L.isOffline && currentLocation === L.tag) {
|
||||||
ref = cachedUsers.get(currentUser.value.id);
|
ref = cachedUsers.get(currentUser.value.id);
|
||||||
if (typeof ref !== 'undefined') {
|
if (typeof ref !== 'undefined') {
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
|||||||
const url = branches[branch.value].urlLatest;
|
const url = branches[branch.value].urlLatest;
|
||||||
checkingForVRCXUpdate.value = true;
|
checkingForVRCXUpdate.value = true;
|
||||||
let response;
|
let response;
|
||||||
|
let json;
|
||||||
try {
|
try {
|
||||||
response = await webApiService.execute({
|
response = await webApiService.execute({
|
||||||
url,
|
url,
|
||||||
@@ -198,6 +199,7 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
|||||||
'VRCX-ID': vrcxId.value
|
'VRCX-ID': vrcxId.value
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
json = JSON.parse(response.data);
|
||||||
} finally {
|
} finally {
|
||||||
checkingForVRCXUpdate.value = false;
|
checkingForVRCXUpdate.value = false;
|
||||||
}
|
}
|
||||||
@@ -211,7 +213,6 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pendingVRCXUpdate.value = false;
|
pendingVRCXUpdate.value = false;
|
||||||
const json = JSON.parse(response.data);
|
|
||||||
if (AppDebug.debugWebRequests) {
|
if (AppDebug.debugWebRequests) {
|
||||||
console.log(json, response);
|
console.log(json, response);
|
||||||
}
|
}
|
||||||
@@ -262,6 +263,7 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
|||||||
const url = branches[branch.value].urlReleases;
|
const url = branches[branch.value].urlReleases;
|
||||||
checkingForVRCXUpdate.value = true;
|
checkingForVRCXUpdate.value = true;
|
||||||
let response;
|
let response;
|
||||||
|
let json;
|
||||||
try {
|
try {
|
||||||
response = await webApiService.execute({
|
response = await webApiService.execute({
|
||||||
url,
|
url,
|
||||||
@@ -270,6 +272,7 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
|||||||
'VRCX-ID': vrcxId.value
|
'VRCX-ID': vrcxId.value
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
json = JSON.parse(response.data);
|
||||||
} finally {
|
} finally {
|
||||||
checkingForVRCXUpdate.value = false;
|
checkingForVRCXUpdate.value = false;
|
||||||
}
|
}
|
||||||
@@ -282,7 +285,6 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const json = JSON.parse(response.data);
|
|
||||||
if (AppDebug.debugWebRequests) {
|
if (AppDebug.debugWebRequests) {
|
||||||
console.log(json, response);
|
console.log(json, response);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,7 +180,7 @@
|
|||||||
@click.stop="promptLocalAvatarFavoriteGroupDelete(group)"></el-button>
|
@click.stop="promptLocalAvatarFavoriteGroupDelete(group)"></el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
<div v-if="localAvatarFavorites[group].length" class="x-friend-list" :style="{ marginTop: '10px' }">
|
<div v-if="localAvatarFavorites[group]?.length" class="x-friend-list" :style="{ marginTop: '10px' }">
|
||||||
<FavoritesAvatarItem
|
<FavoritesAvatarItem
|
||||||
v-for="favorite in localAvatarFavorites[group]"
|
v-for="favorite in localAvatarFavorites[group]"
|
||||||
:key="favorite.id"
|
:key="favorite.id"
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
@click.stop="promptLocalWorldFavoriteGroupDelete(group)" />
|
@click.stop="promptLocalWorldFavoriteGroupDelete(group)" />
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
<div v-if="localWorldFavorites[group].length" class="x-friend-list" style="margin-top: 10px">
|
<div v-if="localWorldFavorites[group]?.length" class="x-friend-list" style="margin-top: 10px">
|
||||||
<el-scrollbar height="700px" @end-reached="localWorldFavoritesLoadMore">
|
<el-scrollbar height="700px" @end-reached="localWorldFavoritesLoadMore">
|
||||||
<FavoritesWorldLocalItem
|
<FavoritesWorldLocalItem
|
||||||
v-for="favorite in sliceLocalWorldFavorites(group)"
|
v-for="favorite in sliceLocalWorldFavorites(group)"
|
||||||
|
|||||||
Reference in New Issue
Block a user