Merge pull request #437 from automatisch/issue-436
feat: add "go back to flows" tooltip in editor
This commit is contained in:
@@ -5,6 +5,7 @@ import Stack from '@mui/material/Stack';
|
|||||||
import Box from '@mui/material/Box';
|
import Box from '@mui/material/Box';
|
||||||
import FormControlLabel from '@mui/material/FormControlLabel';
|
import FormControlLabel from '@mui/material/FormControlLabel';
|
||||||
import Switch from '@mui/material/Switch';
|
import Switch from '@mui/material/Switch';
|
||||||
|
import Tooltip from '@mui/material/Tooltip';
|
||||||
import IconButton from '@mui/material/IconButton';
|
import IconButton from '@mui/material/IconButton';
|
||||||
import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew';
|
import ArrowBackIosNewIcon from '@mui/icons-material/ArrowBackIosNew';
|
||||||
|
|
||||||
@@ -69,13 +70,15 @@ export default function EditorLayout(): React.ReactElement {
|
|||||||
<Stack direction="column" height="100%">
|
<Stack direction="column" height="100%">
|
||||||
<Stack direction="row" bgcolor="white" justifyContent="space-between" alignItems="center" boxShadow={1} py={1} px={1}>
|
<Stack direction="row" bgcolor="white" justifyContent="space-between" alignItems="center" boxShadow={1} py={1} px={1}>
|
||||||
<Box display="flex" flex={1} alignItems="center">
|
<Box display="flex" flex={1} alignItems="center">
|
||||||
<IconButton
|
<Tooltip placement="right" title={formatMessage('flowEditor.goBack')} disableInteractive>
|
||||||
size="small"
|
<IconButton
|
||||||
component={Link}
|
size="small"
|
||||||
to={URLS.FLOWS}
|
component={Link}
|
||||||
>
|
to={URLS.FLOWS}
|
||||||
<ArrowBackIosNewIcon fontSize="small" />
|
>
|
||||||
</IconButton>
|
<ArrowBackIosNewIcon fontSize="small" />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
|
|
||||||
{!loading && (
|
{!loading && (
|
||||||
<EditableTypography
|
<EditableTypography
|
||||||
|
@@ -47,6 +47,7 @@
|
|||||||
"flowStep.actionType": "Action",
|
"flowStep.actionType": "Action",
|
||||||
"flows.create": "Create flow",
|
"flows.create": "Create flow",
|
||||||
"flows.title": "Flows",
|
"flows.title": "Flows",
|
||||||
|
"flowEditor.goBack": "Go back to flows",
|
||||||
"executions.title": "Executions",
|
"executions.title": "Executions",
|
||||||
"execution.executedAt": "executed {datetime}",
|
"execution.executedAt": "executed {datetime}",
|
||||||
"profileSettings.title": "My Profile",
|
"profileSettings.title": "My Profile",
|
||||||
|
Reference in New Issue
Block a user