feat: add "go back to flows" tooltip in editor

This commit is contained in:
Ali BARIN
2022-08-12 15:31:47 +02:00
parent c7d5584cd9
commit a35bee0bc9
2 changed files with 11 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ import Stack from '@mui/material/Stack';
import Box from '@mui/material/Box';
import FormControlLabel from '@mui/material/FormControlLabel';
import Switch from '@mui/material/Switch';
import Tooltip from '@mui/material/Tooltip';
import IconButton from '@mui/material/IconButton';
import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew';
@@ -69,13 +70,15 @@ export default function EditorLayout(): React.ReactElement {
<Stack direction="column" height="100%">
<Stack direction="row" bgcolor="white" justifyContent="space-between" alignItems="center" boxShadow={1} py={1} px={1}>
<Box display="flex" flex={1} alignItems="center">
<IconButton
size="small"
component={Link}
to={URLS.FLOWS}
>
<ArrowBackIosNewIcon fontSize="small" />
</IconButton>
<Tooltip placement="right" title={formatMessage('flowEditor.goBack')} disableInteractive>
<IconButton
size="small"
component={Link}
to={URLS.FLOWS}
>
<ArrowBackIosNewIcon fontSize="small" />
</IconButton>
</Tooltip>
{!loading && (
<EditableTypography

View File

@@ -47,6 +47,7 @@
"flowStep.actionType": "Action",
"flows.create": "Create flow",
"flows.title": "Flows",
"flowEditor.goBack": "Go back to flows",
"executions.title": "Executions",
"execution.executedAt": "executed {datetime}",
"profileSettings.title": "My Profile",