Skip to content

Commit

Permalink
Add tooltip to clone buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Farcy committed Nov 20, 2023
1 parent 66f2ce0 commit 963d0c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cancel": "Cancel",
"close": "Close",
"delete": "Delete {{name}}",
"clone": "Duplicate",
"error": {
"title": "An error occurred. ",
"text": "Back to home: ",
Expand Down
1 change: 1 addition & 0 deletions public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cancel": "Annuler",
"close": "Fermer",
"delete": "Supprimer {{name}}",
"clone": "Dupliquer",
"error": {
"title": "Un problème est survenu. ",
"text": "Retourner à la page d'accueil : ",
Expand Down
1 change: 1 addition & 0 deletions src/components/react-admin/CustomCloneButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const CustomCloneButton = ({

return (
<Button
title={translate('common.clone')}
component={Link}
label={translate(label)}
onClick={loadData}
Expand Down
1 change: 1 addition & 0 deletions src/components/react-admin/CustomCloneButton2.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const CustomCloneButton2 = ({
return (
<Button
label={translate(label)}
title={translate('common.clone')}
onClick={handleButtonClick}
{...rest}
>
Expand Down

0 comments on commit 963d0c6

Please sign in to comment.