bbovenzi commented on code in PR #70312:
URL: https://github.com/apache/airflow/pull/70312#discussion_r3716411447
##########
airflow-core/src/airflow/ui/src/pages/Dag/Header.tsx:
##########
@@ -58,6 +59,8 @@ export const Header = ({
const { t: translate } = useTranslation(["common", "dag"]);
// We would still like to show the dagId even if the dag object hasn't
loaded yet
const { dagId } = useParams();
+ const multiTeamEnabled = Boolean(useConfig("multi_team"));
+ const showTeam = multiTeamEnabled && dag?.team_name !== undefined &&
dag.team_name !== null;
Review Comment:
We copy-pasted this showTeam logic in a lot of places. Let's just have a
<TeamName />` component to handle this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]