From 0a04992b0581a3cb47017c0713703ed7e204ac02 Mon Sep 17 00:00:00 2001 From: Alberto Gutierrez Date: Wed, 31 Jan 2024 10:42:58 +0100 Subject: [PATCH] fix(kiali): show username when auth is anonymous (#1139) * fix(kiali): show username when auth is anonymous * Fix render first time metrics * Align toolbar * Align kiali head --- .../kiali/src/pages/Kiali/Header/Header.tsx | 23 +++++++------- .../kiali/src/pages/Overview/OverviewPage.tsx | 30 ++++++------------- .../src/pages/Overview/OverviewToolbar.tsx | 12 ++++---- 3 files changed, 27 insertions(+), 38 deletions(-) diff --git a/plugins/kiali/src/pages/Kiali/Header/Header.tsx b/plugins/kiali/src/pages/Kiali/Header/Header.tsx index 8da537cbfd..de070620a4 100644 --- a/plugins/kiali/src/pages/Kiali/Header/Header.tsx +++ b/plugins/kiali/src/pages/Kiali/Header/Header.tsx @@ -42,7 +42,7 @@ export const KialiHeader = (props: { title: string }) => { const title = props.title.charAt(0).toUpperCase() + props.title.slice(1); return ( - <> +
updateOverviewType(e as String)} label="Health for" @@ -109,7 +109,7 @@ export const OverviewToolbar = (props: OverviewToolbarProps) => { selected={props.overviewType} /> - + updateDurationType(e as number)} label="Metrics from" @@ -125,9 +125,9 @@ export const OverviewToolbar = (props: OverviewToolbarProps) => { selected={props.duration.toString()} /> - + - +