mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 23:33:50 +02:00
Fix user dialog home world name
This commit is contained in:
@@ -1262,6 +1262,14 @@ speechSynthesis.getVoices();
|
|||||||
Object.assign(ref, json);
|
Object.assign(ref, json);
|
||||||
if (ref.homeLocation !== ref.$homeLocation.tag) {
|
if (ref.homeLocation !== ref.$homeLocation.tag) {
|
||||||
ref.$homeLocation = this.parseLocation(ref.homeLocation);
|
ref.$homeLocation = this.parseLocation(ref.homeLocation);
|
||||||
|
// apply home location name to user dialog
|
||||||
|
if ($app.userDialog.visible && $app.userDialog.id === ref.id) {
|
||||||
|
API.getCachedWorld({
|
||||||
|
worldId: API.currentUser.homeLocation
|
||||||
|
}).then((args) => {
|
||||||
|
$app.userDialog.$homeLocationName = args.ref.name;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
||||||
this.applyUserTrustLevel(ref);
|
this.applyUserTrustLevel(ref);
|
||||||
@@ -12908,6 +12916,7 @@ speechSynthesis.getVoices();
|
|||||||
isFavorite: false,
|
isFavorite: false,
|
||||||
|
|
||||||
$location: {},
|
$location: {},
|
||||||
|
$homeLocationName: '',
|
||||||
users: [],
|
users: [],
|
||||||
instance: {},
|
instance: {},
|
||||||
|
|
||||||
@@ -13160,6 +13169,13 @@ speechSynthesis.getVoices();
|
|||||||
D.previousDisplayNames = [];
|
D.previousDisplayNames = [];
|
||||||
D.dateFriended = '';
|
D.dateFriended = '';
|
||||||
D.unFriended = false;
|
D.unFriended = false;
|
||||||
|
if (userId === API.currentUser.id) {
|
||||||
|
API.getCachedWorld({
|
||||||
|
worldId: API.currentUser.homeLocation
|
||||||
|
}).then((args) => {
|
||||||
|
D.$homeLocationName = args.ref.name;
|
||||||
|
});
|
||||||
|
}
|
||||||
API.getCachedUser({
|
API.getCachedUser({
|
||||||
userId
|
userId
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1657,7 +1657,7 @@ html
|
|||||||
.detail
|
.detail
|
||||||
span.name Home Location
|
span.name Home Location
|
||||||
span.extra
|
span.extra
|
||||||
location(:location="API.currentUser.homeLocation" :link="false")
|
span(v-text="userDialog.$homeLocationName")
|
||||||
el-button(@click.stop="resetHome()" size="mini" icon="el-icon-delete" circle style="margin-left:5px")
|
el-button(@click.stop="resetHome()" size="mini" icon="el-icon-delete" circle style="margin-left:5px")
|
||||||
el-tab-pane(label="Worlds")
|
el-tab-pane(label="Worlds")
|
||||||
el-button(type="default" :loading="userDialog.isWorldsLoading" @click="refreshUserDialogWorlds()" size="mini" icon="el-icon-refresh" circle)
|
el-button(type="default" :loading="userDialog.isWorldsLoading" @click="refreshUserDialogWorlds()" size="mini" icon="el-icon-refresh" circle)
|
||||||
|
|||||||
Reference in New Issue
Block a user