From 1a144608308c6392d5e2f0ad71bfcb17dda1d252 Mon Sep 17 00:00:00 2001 From: Brent Bovenzi Date: Wed, 15 Nov 2023 11:49:51 -0500 Subject: [PATCH] Move external logs links to top of react logs page --- .../dag/details/taskInstance/Logs/index.tsx | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/airflow/www/static/js/dag/details/taskInstance/Logs/index.tsx b/airflow/www/static/js/dag/details/taskInstance/Logs/index.tsx index 97499b41a752e..16a5e2159f38d 100644 --- a/airflow/www/static/js/dag/details/taskInstance/Logs/index.tsx +++ b/airflow/www/static/js/dag/details/taskInstance/Logs/index.tsx @@ -22,7 +22,6 @@ import { Text, Box, Flex, - Divider, Button, Checkbox, Icon, @@ -175,6 +174,22 @@ const Logs = ({ return ( <> + {externalLogName && externalIndexes.length > 0 && ( + + View Logs in {externalLogName} (by attempts): + + {externalIndexes.map((index) => ( + + ))} + + + )} {tryNumber !== undefined && ( <> @@ -280,25 +295,6 @@ const Logs = ({ )} )} - {externalLogName && externalIndexes.length > 0 && ( - <> - - View Logs in {externalLogName} (by attempts): - - {externalIndexes.map((index) => ( - - ))} - - - - - )} ); };