From 21b13f0e2c47e35ab1a6f32fe76d01404b990a35 Mon Sep 17 00:00:00 2001 From: mlorb Date: Tue, 17 Oct 2017 10:57:14 +0200 Subject: [PATCH] fixes some text style and default input values --- app/javascript/src/config/locales/messages.js | 7 +++-- .../profile/components/AvatarInputField.jsx | 2 +- .../profile/components/InputEnabled.jsx | 30 +++++++++++-------- .../scenes/profile/components/MyProfile.jsx | 10 +++---- 4 files changed, 29 insertions(+), 20 deletions(-) diff --git a/app/javascript/src/config/locales/messages.js b/app/javascript/src/config/locales/messages.js index cc46e69f2..26328ca30 100644 --- a/app/javascript/src/config/locales/messages.js +++ b/app/javascript/src/config/locales/messages.js @@ -5,7 +5,8 @@ export default { cancel: "Cancel", update: "Update", edit: "Edit", - loading: "Loading ..." + loading: "Loading ...", + upload: "Upload" }, error_messages: { text_too_short: "is too short (minimum is {min_length} characters)", @@ -71,12 +72,14 @@ export default { team: "Team", avatar: "Avatar", edit_avatar: "Edit Avatar", + upload_new_avatar: "Upload new avatar file", change: "Change", change_password: "Password", new_password: "New password", password_confirmation: - "Current password (we need your current password to confirm your changes)", + "Current password (we need your current password to confirm your changes)", new_password_confirmation: "New password confirmation", + email: "Email", new_email: "New email", initials: "Initials", full_name: "Full name", diff --git a/app/javascript/src/scenes/SettingsPage/scenes/profile/components/AvatarInputField.jsx b/app/javascript/src/scenes/SettingsPage/scenes/profile/components/AvatarInputField.jsx index 3fa0396df..b7c12ae9e 100644 --- a/app/javascript/src/scenes/SettingsPage/scenes/profile/components/AvatarInputField.jsx +++ b/app/javascript/src/scenes/SettingsPage/scenes/profile/components/AvatarInputField.jsx @@ -72,7 +72,7 @@ class AvatarInputField extends Component { -

- -

+ - - - +   - {this.props.labelValue} + {this.props.labelValue !== "none" && ( + + + + )} {this.inputField()} {this.confirmationField()} {this.state.errorMessage}