diff --git a/libs/pages/layout/src/lib/ui/layout-page/layout-page.tsx b/libs/pages/layout/src/lib/ui/layout-page/layout-page.tsx index 48b8a1dd847..fef8fd2d72c 100644 --- a/libs/pages/layout/src/lib/ui/layout-page/layout-page.tsx +++ b/libs/pages/layout/src/lib/ui/layout-page/layout-page.tsx @@ -58,7 +58,7 @@ export function LayoutPage(props: LayoutPageProps) { )}
{children} diff --git a/libs/pages/logs/application/src/lib/page-application-logs.tsx b/libs/pages/logs/application/src/lib/page-application-logs.tsx index a9313e5c680..6eb715f1873 100644 --- a/libs/pages/logs/application/src/lib/page-application-logs.tsx +++ b/libs/pages/logs/application/src/lib/page-application-logs.tsx @@ -112,6 +112,7 @@ export function PageApplicationLogs() { setLogs([]) setPauseLogs([]) setPauseStatusLogs(false) + setDebugMode(false) } }, [applicationId]) @@ -217,6 +218,7 @@ export function PageApplicationLogs() { lineNumbers={false} debugMode={debugMode} setDebugMode={setDebugMode} + nginxLogsCount={logs.filter((log: Log) => log.pod_name === 'nginx').length} > void clusterBanner?: boolean + nginxLogsCount?: number } export interface ErrorLogsProps { @@ -68,6 +70,7 @@ export function LayoutLogs(props: LayoutLogsProps) { debugMode, setDebugMode, clusterBanner, + nginxLogsCount, } = props const location = useLocation() @@ -215,15 +218,30 @@ export function LayoutLogs(props: LayoutLogsProps) {

)} {setDebugMode && ( -
+
setDebugMode(!debugMode)} - label="Nginx log" + label="NGINX logs" className="-ml-1" /> + {debugMode && nginxLogsCount !== undefined ? ( + ({nginxLogsCount}) + ) : ( + '' + )} + + + + +
)}