This commit is contained in:
Austin Philp 2022-11-11 15:47:20 -08:00
parent c6dc4054be
commit eb295453fc

View File

@ -24,7 +24,7 @@
<div class="py-2"> <div class="py-2">
<h1 class="text-lg mb-2 text-white text-opacity-90 px-2 sm:px-0">{{ $strings.HeaderListeningStats }}</h1> <h1 class="text-lg mb-2 text-white text-opacity-90 px-2 sm:px-0">{{ $strings.HeaderListeningStats }}</h1>
<div class="flex items-center"> <div class="flex items-center">
<p class="text-sm text-gray-300">{{ this.listeningSessions.total }} {{ $strings.HeaderListeningSessions }}</p> <p class="text-sm text-gray-300">{{ listeningSessions.total }} {{ $strings.HeaderListeningSessions }}</p>
<ui-btn :to="`/config/users/${user.id}/sessions`" class="text-xs mx-2" :padding-x="1.5" :padding-y="1">{{ $strings.ButtonViewAll }}</ui-btn> <ui-btn :to="`/config/users/${user.id}/sessions`" class="text-xs mx-2" :padding-x="1.5" :padding-y="1">{{ $strings.ButtonViewAll }}</ui-btn>
</div> </div>
<p class="text-sm text-gray-300"> <p class="text-sm text-gray-300">
@ -110,8 +110,7 @@ export default {
}, },
data() { data() {
return { return {
listeningSessions: [], listeningSessions: {},
totalSessions: 0,
listeningStats: {}, listeningStats: {},
purgingMediaProgress: false purgingMediaProgress: false
} }