Add IP Address to listening session to provide a more accurate history of the network location for each playback.

This commit is contained in:
Peter BALIVET 2025-06-23 10:38:43 +02:00
parent 108b2a60f5
commit 7fb2acc500
5 changed files with 81 additions and 2 deletions

View file

@ -89,7 +89,7 @@
<p v-if="hasDeviceInfo" class="font-semibold uppercase text-xs text-gray-400 tracking-wide mt-6 mb-2">{{ $strings.LabelDevice }}</p>
<p v-if="clientDisplayName" class="mb-1">{{ clientDisplayName }}</p>
<p v-if="deviceInfo.ipAddress" class="mb-1">{{ deviceInfo.ipAddress }}</p>
<p v-if="_session.ipAddress" class="mb-1">{{ _session.ipAddress }}</p>
<p v-if="osDisplayName" class="mb-1">{{ osDisplayName }}</p>
<p v-if="deviceInfo.browserName" class="mb-1">{{ deviceInfo.browserName }}</p>
<p v-if="deviceDisplayName" class="mb-1">{{ deviceDisplayName }}</p>
@ -136,7 +136,7 @@ export default {
return this._session.deviceInfo || {}
},
hasDeviceInfo() {
return Object.keys(this.deviceInfo).length
return Object.keys(this.deviceInfo).length || this._session.ipAddress
},
osDisplayName() {
if (!this.deviceInfo.osName) return null