From 10bc09ca8d088341f0603b0ad0fcc571b65e862c Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 22 Jul 2021 10:33:16 +0300 Subject: [PATCH] Fix realtime view --- assets/js/dashboard/filters.js | 9 ++++++--- assets/js/dashboard/realtime.js | 29 ++++++++++++++++++++++++----- 2 files changed, 30 insertions(+), 8 deletions(-) diff --git a/assets/js/dashboard/filters.js b/assets/js/dashboard/filters.js index e58e5a511..355cc846e 100644 --- a/assets/js/dashboard/filters.js +++ b/assets/js/dashboard/filters.js @@ -153,9 +153,11 @@ function DropdownContent({history, site, query, wrapped}) { + Add filter {appliedFilters(query).map((filter) => renderDropdownFilter(site, history, filter, query))} -
clearAllFilters(history, query)}> - Clear All Filters -
+ +
clearAllFilters(history, query)}> + Clear All Filters +
+
) } @@ -310,6 +312,7 @@ class Filters extends React.Component { leaveTo="transform opacity-0 scale-95" >
) } + + return null } render() { @@ -25,7 +30,19 @@ export default class Realtime extends React.Component { return (
- +
+
+
+
+ + +
+
+ + +
+
+
@@ -41,3 +58,5 @@ export default class Realtime extends React.Component { ) } } + +export default withPinnedHeader(Realtime, '#stats-container-top');