mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 22:03:50 +02:00
user dialog platform
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
{{ t('dialog.user.tags.vrchat_team') }}
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-if="userDialog.ref.last_platform === 'standalonewindows'"
|
||||
v-if="userDialog.ref.$platform === 'standalonewindows'"
|
||||
type="info"
|
||||
effect="plain"
|
||||
size="mini"
|
||||
@@ -188,7 +188,7 @@
|
||||
PC
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="userDialog.ref.last_platform === 'android'"
|
||||
v-else-if="userDialog.ref.$platform === 'android'"
|
||||
type="info"
|
||||
effect="plain"
|
||||
size="mini"
|
||||
@@ -197,7 +197,7 @@
|
||||
Android
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="userDialog.ref.last_platform === 'ios'"
|
||||
v-else-if="userDialog.ref.$platform === 'ios'"
|
||||
type="info"
|
||||
effect="plain"
|
||||
size="mini"
|
||||
@@ -206,13 +206,13 @@
|
||||
>iOS</el-tag
|
||||
>
|
||||
<el-tag
|
||||
v-else-if="userDialog.ref.last_platform"
|
||||
v-else-if="userDialog.ref.$platform"
|
||||
type="info"
|
||||
effect="plain"
|
||||
size="mini"
|
||||
class="x-tag-platform-other"
|
||||
style="margin-right: 5px; margin-top: 5px">
|
||||
{{ userDialog.ref.last_platform }}
|
||||
{{ userDialog.ref.$platform }}
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-if="userDialog.ref.ageVerified && userDialog.ref.ageVerificationStatus"
|
||||
|
||||
@@ -126,16 +126,9 @@ function userStatusClass(user, pendingOffline = false) {
|
||||
style.busy = true;
|
||||
}
|
||||
if (
|
||||
user.platform &&
|
||||
user.platform !== 'standalonewindows' &&
|
||||
user.platform !== 'web'
|
||||
) {
|
||||
style.mobile = true;
|
||||
}
|
||||
if (
|
||||
user.last_platform &&
|
||||
user.last_platform !== 'standalonewindows' &&
|
||||
user.platform === 'web'
|
||||
user.$platform &&
|
||||
user.$platform !== 'standalonewindows' &&
|
||||
user.$platform !== 'web'
|
||||
) {
|
||||
style.mobile = true;
|
||||
}
|
||||
|
||||
@@ -521,6 +521,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
$customTagColour: '',
|
||||
$friendNumber: 0,
|
||||
$lastFetch: Date.now(),
|
||||
$platform: '',
|
||||
//
|
||||
...json
|
||||
};
|
||||
@@ -595,6 +596,11 @@ export const useUserStore = defineStore('User', () => {
|
||||
ref.$isVRCPlus = ref.tags.includes('system_supporter');
|
||||
appearanceSettingsStore.applyUserTrustLevel(ref);
|
||||
applyUserLanguage(ref);
|
||||
if (ref.platform && ref.platform !== 'offline') {
|
||||
ref.$platform = ref.platform;
|
||||
} else {
|
||||
ref.$platform = ref.last_platform;
|
||||
}
|
||||
// traveling
|
||||
if (ref.location === 'traveling') {
|
||||
ref.$location = parseLocation(ref.travelingToLocation);
|
||||
|
||||
Reference in New Issue
Block a user