diff --git a/client/components/app/StreamContainer.vue b/client/components/app/StreamContainer.vue index fa41b528..baecbde4 100644 --- a/client/components/app/StreamContainer.vue +++ b/client/components/app/StreamContainer.vue @@ -460,6 +460,13 @@ export default { showFailedProgressSyncs() { if (!isNaN(this.syncFailedToast)) this.$toast.dismiss(this.syncFailedToast) this.syncFailedToast = this.$toast('Progress is not being synced. Restart playback', { timeout: false, type: 'error' }) + }, + sessionClosedEvent(sessionId) { + if (this.playerHandler.currentSessionId === sessionId) { + console.log('sessionClosedEvent closing current session', sessionId) + this.playerHandler.resetPlayer() // Closes player without reporting to server + this.$store.commit('setMediaPlaying', null) + } } }, mounted() { diff --git a/client/components/modals/ListeningSessionModal.vue b/client/components/modals/ListeningSessionModal.vue index 79e66cc7..ea9988f3 100644 --- a/client/components/modals/ListeningSessionModal.vue +++ b/client/components/modals/ListeningSessionModal.vue @@ -98,7 +98,8 @@
{{ $strings.MessageNoListeningSessions }}
+ + +Open Listening Sessions
+{{ $strings.LabelItem }} | + + + +{{ $strings.LabelTimeListened }} | +{{ $strings.LabelLastTime }} | + +|||
---|---|---|---|---|---|
+ {{ session.displayTitle }} +{{ session.displayAuthor }} + |
+
+ {{ filteredUserUsername }} +{{ session.user ? session.user.username : 'N/A' }} + |
+
+ {{ getPlayMethodName(session.playMethod) }} + |
+ + + | +
+ {{ $elapsedPretty(session.timeListening) }} + |
+
+ {{ $secondsToTimestamp(session.currentTime) }} + |
+
+