mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Invite parse region
This commit is contained in:
@@ -2455,20 +2455,6 @@ speechSynthesis.getVoices();
|
|||||||
return '';
|
return '';
|
||||||
};
|
};
|
||||||
|
|
||||||
API.parseInviteLocation = function (ref) {
|
|
||||||
try {
|
|
||||||
var L = API.parseLocation(ref.details.worldId);
|
|
||||||
if (L.worldId && L.instanceId) {
|
|
||||||
return `${ref.details.worldName} #${L.instanceName} ${L.accessType}`;
|
|
||||||
}
|
|
||||||
return ref.message ||
|
|
||||||
ref.details.worldId ||
|
|
||||||
ref.details.worldName;
|
|
||||||
} catch (err) {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// API: PlayerModeration
|
// API: PlayerModeration
|
||||||
|
|
||||||
API.cachedPlayerModerations = new Map();
|
API.cachedPlayerModerations = new Map();
|
||||||
|
|||||||
+1
-1
@@ -439,7 +439,7 @@ html
|
|||||||
template(v-once #default="scope")
|
template(v-once #default="scope")
|
||||||
el-tooltip(placement="top" v-if="scope.row.type === 'invite'")
|
el-tooltip(placement="top" v-if="scope.row.type === 'invite'")
|
||||||
template(#content)
|
template(#content)
|
||||||
span(v-text="API.parseInviteLocation(scope.row)")
|
location(v-if="scope.row.details" :location="scope.row.details.worldId" :hint="scope.row.details.worldName" :link="false")
|
||||||
span.x-link(v-text="scope.row.type" @click="showWorldDialog(scope.row.details.worldId)")
|
span.x-link(v-text="scope.row.type" @click="showWorldDialog(scope.row.details.worldId)")
|
||||||
span(v-else v-text="scope.row.type")
|
span(v-else v-text="scope.row.type")
|
||||||
el-table-column(label="User" prop="senderUsername" width="150")
|
el-table-column(label="User" prop="senderUsername" width="150")
|
||||||
|
|||||||
Reference in New Issue
Block a user