mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
fixed toast for multiple components selection (#7239)
* fixed toast for multiple components selection * Update frontend/src/_helpers/appUtils.js Co-authored-by: Chetan Kumar <Chetansain86@gmail.com> * Resolved the code comments --------- Co-authored-by: Chetan Kumar <Chetansain86@gmail.com> Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
This commit is contained in:
parent
607b01baa1
commit
5e0768820e
1 changed files with 3 additions and 1 deletions
|
|
@ -1383,7 +1383,9 @@ export const cloneComponents = (_ref, updateAppDefinition, isCloning = true, isC
|
|||
updateAppDefinition(newDefinition);
|
||||
} else {
|
||||
navigator.clipboard.writeText(JSON.stringify(newComponentObj));
|
||||
toast.success('Component copied succesfully');
|
||||
const successMessage =
|
||||
newComponentObj.newComponents.length > 1 ? 'Components copied successfully' : 'Component copied successfully';
|
||||
toast.success(successMessage);
|
||||
}
|
||||
_ref.setState({ currentSidebarTab: 2 });
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue