From 278606f0316e43174cb883f06b07474942a4599e Mon Sep 17 00:00:00 2001 From: Roland Date: Sun, 14 Apr 2024 13:15:00 -0600 Subject: [PATCH] Moving Videos Comments Statistics to their own segment. --- app/src/components/Videos.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/components/Videos.js b/app/src/components/Videos.js index 419fdd65..923eaae4 100644 --- a/app/src/components/Videos.js +++ b/app/src/components/Videos.js @@ -4,8 +4,8 @@ import { APIButton, CardLink, CardPoster, - defaultSearchOrder, defaultFileOrder, + defaultSearchOrder, Duration, encodeMediaPath, ErrorMessage, @@ -238,6 +238,8 @@ function VideosStatistics() { {key: 'month', label: 'Downloads Past Month'}, {key: 'year', label: 'Downloads Past Year'}, {key: 'sum_duration', label: 'Total Duration'}, + ]; + const commentsNames = [ {key: 'have_comments', label: 'Have Comments'}, {key: 'no_comments', label: 'Missing Comments'}, {key: 'failed_comments', label: 'Failed Comments'}, @@ -267,6 +269,7 @@ function VideosStatistics() { return <> {buildSegment('Videos', videoNames, videos)} + {buildSegment('Video Comments', commentsNames, videos)} {buildSegment('Historical Video', historicalNames, historical)} {buildSegment('Channels', channelNames, channels)}