From fb88da4337d11de57f62577ce3f15ebe0d15770d Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 28 Jun 2022 07:25:24 +0100 Subject: [PATCH] limiting artist breakdown visibility --- Selector.Web/Pages/Now.cshtml | 2 +- Selector.Web/scripts/now.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Selector.Web/Pages/Now.cshtml b/Selector.Web/Pages/Now.cshtml index 4a72306..31a6ffc 100644 --- a/Selector.Web/Pages/Now.cshtml +++ b/Selector.Web/Pages/Now.cshtml @@ -26,7 +26,7 @@ + v-if="showArtistBreakdown"> 3; }, + showArtistBreakdown(){ + return this.playCount !== null && this.playCount !== undefined && this.playCount.artist > 0; + }, earliestDate(){ return this.playCount.artistCountData[0].timeStamp; },