diff --git a/src/components/appBar/AppBar.tsx b/src/components/appBar/AppBar.tsx index d9435244..728de039 100644 --- a/src/components/appBar/AppBar.tsx +++ b/src/components/appBar/AppBar.tsx @@ -61,6 +61,8 @@ const AppBar = ({ title, showBackButton = false, topPanelHeight }: Props) => { const [selectedSystem, setSelectedSystem] = useSelectedSystemSummaries(); const [changePasswordDialogOpen, setChangePasswordDialogOpen] = useState(false); + const tooltipText = (messageCode) => {t(messageCode)}; + const isMenuOpen = Boolean(anchorEl); const handleProfileMenuOpen = (event: React.MouseEvent) => { @@ -175,7 +177,11 @@ const AppBar = ({ title, showBackButton = false, topPanelHeight }: Props) => { {selectedSystem && !isGlobalSystemSwitchDisabled && ( - + )} diff --git a/src/components/dashboard/content/list/FaultTreeOverview.tsx b/src/components/dashboard/content/list/FaultTreeOverview.tsx index 91d6e779..89cc5c0c 100644 --- a/src/components/dashboard/content/list/FaultTreeOverview.tsx +++ b/src/components/dashboard/content/list/FaultTreeOverview.tsx @@ -10,7 +10,7 @@ import { useFaultTrees } from "@hooks/useFaultTrees"; import FaultTreeContextMenu from "@components/editor/faultTree/menu/faultTree/FaultTreeContextMenu"; import FaultTreeEditDialog from "@components/dialog/faultTree/FaultTreeEditDialog"; import FaultTreeDialog from "@components/dialog/faultTree/FaultTreeDialog"; -import { Box, Button } from "@mui/material"; +import { Box, Button, Typography } from "@mui/material"; import { useTranslation } from "react-i18next"; import { SELECTED_VIEW } from "@utils/constants"; import { useSelectedSystemSummaries } from "@hooks/useSelectedSystemSummaries"; @@ -33,6 +33,9 @@ const FaultTreeOverview = () => { key: "date", direction: "desc", }); + + const tooltipText = (messageCode) => {t(messageCode)}; + const isTreeCreationDisabled = !selectedSystem; useEffect(() => { @@ -88,7 +91,7 @@ const FaultTreeOverview = () => { - +