From 3d821dacb7a7c35f962f06fcf0cff9a4c03d0244 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 4 Jun 2022 15:51:00 -0500 Subject: [PATCH] Fix:Sessions table cleanup --- .../modals/ListeningSessionModal.vue | 5 +++- client/pages/config/sessions.vue | 28 ++++++++++--------- client/pages/config/users/_id/sessions.vue | 23 +++++++-------- client/tailwind.config.js | 1 + 4 files changed, 32 insertions(+), 25 deletions(-) diff --git a/client/components/modals/ListeningSessionModal.vue b/client/components/modals/ListeningSessionModal.vue index 7c4166b6..f460cada 100644 --- a/client/components/modals/ListeningSessionModal.vue +++ b/client/components/modals/ListeningSessionModal.vue @@ -87,7 +87,7 @@

{{ playMethodName }}

{{ _session.mediaPlayer }}

-

Device

+

Device

{{ deviceInfo.ipAddress }}

{{ osDisplayName }}

{{ deviceInfo.browserName }}

@@ -127,6 +127,9 @@ export default { deviceInfo() { return this._session.deviceInfo || {} }, + hasDeviceInfo() { + return Object.keys(this.deviceInfo).length + }, osDisplayName() { if (!this.deviceInfo.osName) return null return `${this.deviceInfo.osName} ${this.deviceInfo.osVersion}` diff --git a/client/pages/config/sessions.vue b/client/pages/config/sessions.vue index c2dceae6..aec8d6e6 100644 --- a/client/pages/config/sessions.vue +++ b/client/pages/config/sessions.vue @@ -8,21 +8,22 @@ -
+
- - - - - - - + + + + + + + + - @@ -166,10 +167,11 @@ export default { } -
ItemUserListenedLast TimeItemListenedLast Time
-

{{ session.displayTitle }}

-

{{ session.displayAuthor }}

+
+

{{ session.displayTitle }}

+

{{ session.displayAuthor }}