From 771de9fe68b41fb9536725b8d80002f3e52e5cae Mon Sep 17 00:00:00 2001 From: Larbi Gharib <larbi.gharib@savoirfairelinux.com> Date: Thu, 15 Oct 2020 17:30:40 -0400 Subject: [PATCH] Validate no cancel crop Change-Id: I15091c9d70b907650005fbb54f4f41f74e52280a --- jams-react-client/src/locales/en/translation.json | 4 ++-- jams-react-client/src/locales/fr/translation.json | 4 ++-- .../src/views/UserProfile/EditCreateUserProfile.js | 7 ++----- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/jams-react-client/src/locales/en/translation.json b/jams-react-client/src/locales/en/translation.json index edbd84e5..749fa354 100644 --- a/jams-react-client/src/locales/en/translation.json +++ b/jams-react-client/src/locales/en/translation.json @@ -210,7 +210,6 @@ "crop_image": "Crop image", "zoom": "Zoom", "rotation": "Rotation", - "crop": "Crop", "create_new_profile": "Create new profile", "change_profile_image": "Change profile image", "username_already_taken": "Username already taken", @@ -229,5 +228,6 @@ "advanced_settings": "Advanced settings", "create_administrator": "Create Administrator", "paste_your_jams_enterprise_subscription_code_received_from_jami": "Paste your JAMS Enterprise subscription code received from the Jami store.", - "blueprint_name": "Blueprint name" + "blueprint_name": "Blueprint name", + "validate": "Validate" } diff --git a/jams-react-client/src/locales/fr/translation.json b/jams-react-client/src/locales/fr/translation.json index fc153392..78846209 100644 --- a/jams-react-client/src/locales/fr/translation.json +++ b/jams-react-client/src/locales/fr/translation.json @@ -210,7 +210,6 @@ "crop_image": "Couper l'image", "zoom": "Zoom", "rotation": "Rotation", - "crop": "Couper", "create_new_profile": "Créer un nouveau profil", "change_profile_image": "Modifier l'image du profil ", "username_already_taken": "Ce nom d'utilisateur est déjà utilisé", @@ -229,5 +228,6 @@ "advanced_settings": "Configurations avancées", "create_administrator": "Créer un Administrateur", "paste_your_jams_enterprise_subscription_code_received_from_jami": "Coller votre code de souscription JAMS Entreprise émis par la boutique Jami. ", - "blueprint_name": "Nom du plan" + "blueprint_name": "Nom du plan", + "validate": "Validate" } diff --git a/jams-react-client/src/views/UserProfile/EditCreateUserProfile.js b/jams-react-client/src/views/UserProfile/EditCreateUserProfile.js index aa84e74c..e0b2fcda 100644 --- a/jams-react-client/src/views/UserProfile/EditCreateUserProfile.js +++ b/jams-react-client/src/views/UserProfile/EditCreateUserProfile.js @@ -519,11 +519,8 @@ export default function EditCreateUserProfile(props) { </div> </DialogContent> <DialogActions> - <Button onClick={handleClose} color="info"> - {i18next.t("cancel", "Cancel")} - </Button> - <Button onClick={cropProfilePicture} color="success" autoFocus> - {i18next.t("crop", "Crop")} + <Button onClick={cropProfilePicture} color="info" autoFocus> + {i18next.t("validate", "Validate")} </Button> </DialogActions> </Dialog> -- GitLab