Skip to content

Commit

Permalink
round 2 feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Jul 19, 2024
1 parent 908f3b5 commit f7d725b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/floweditor/FlowEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export const FlowEditor = () => {
<div className={styles.Header}>
<div className={styles.Title}>
<BackIconFlow
onClick={() => navigate('/flow')}
onClick={() => (isTemplate ? navigate('/flow?isTemplate=true') : navigate('/flow'))}
className={styles.BackIcon}
data-testid="back-button"
/>
Expand Down
2 changes: 2 additions & 0 deletions src/containers/Flow/Flow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ export const Flow = () => {
title = t('Template flow copy');
type = 'copy';
copyNotification = t('Flow created successfully from template!');
} else if (location.state === 'template') {
title = t('Template Flow');
} else {
queries.updateItemQuery = UPDATE_FLOW;
}
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@
"Export the content of the message as a csv.": "Export the content of the message as a csv.",
"Import the csv with translations for interactive message.": "Import the csv with translations for interactive message.",
"Template Flows": "Template Flows",
"Template Flow": "Template Flow",
"Template flow copy": "Template flow copy",
"Flow created successfully from template!": "Flow created successfully from template!"
}

0 comments on commit f7d725b

Please sign in to comment.