From 61296e7402643b897f10643747590052d5a24ea7 Mon Sep 17 00:00:00 2001 From: leoliu Date: Fri, 3 Jul 2020 13:51:52 +0800 Subject: [PATCH] fix: Fix log search in single cluster mode. --- .../AuditingSearch/Auditing/Detail/index.jsx | 20 ++++++++++-------- .../AuditingSearch/Auditing/Home/index.jsx | 20 +++++++++++------- .../Modals/EventSearch/Event/Detail/index.jsx | 20 ++++++++++-------- .../Modals/EventSearch/Event/Home/index.jsx | 16 +++++++------- .../Modals/LogSearch/Logging/Home/index.jsx | 16 +++++++------- .../Modals/LogSearch/Logging/Search/index.jsx | 21 ++++++++++--------- 6 files changed, 63 insertions(+), 50 deletions(-) diff --git a/src/components/Modals/AuditingSearch/Auditing/Detail/index.jsx b/src/components/Modals/AuditingSearch/Auditing/Detail/index.jsx index d2a26055f6b..8664ebde633 100644 --- a/src/components/Modals/AuditingSearch/Auditing/Detail/index.jsx +++ b/src/components/Modals/AuditingSearch/Auditing/Detail/index.jsx @@ -350,15 +350,17 @@ export default class Detail extends React.PureComponent { const { searchInputState, clustersOpts } = this.props return (
- - + + )} - + )}

{total || 0}

- {t('Trends in the total number of auditing logs in the last 12 hours')} + {t( + 'Trends in the total number of auditing logs in the last 12 hours' + )}

diff --git a/src/components/Modals/EventSearch/Event/Detail/index.jsx b/src/components/Modals/EventSearch/Event/Detail/index.jsx index b32cae897d7..da16beb6d4f 100644 --- a/src/components/Modals/EventSearch/Event/Detail/index.jsx +++ b/src/components/Modals/EventSearch/Event/Detail/index.jsx @@ -369,15 +369,17 @@ export default class Detail extends React.PureComponent { const { searchInputState, clustersOpts } = this.props return (
- - + + )} - + )} - + )} - - + + )}