Fix front-end before release

Fix eye position input password
Add notification on settings update plugin users permissions
Fix error display on login page

Co-authored-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
Jim Laurie 2018-02-13 16:26:27 +01:00
parent c52fe7165b
commit bbc2493f07
5 changed files with 8 additions and 2 deletions

View File

@ -14,7 +14,7 @@
.iconEyeSubWrapper {
position: absolute;
top: -2.6rem;
right: 2.7rem;
right: 1.7rem;
color: #9EA7B8;
&:hover {
color: black!important;

View File

@ -77,6 +77,7 @@ class InputPasswordWithErrors extends React.Component {
labelClassName,
labelStyle,
name,
noErrorsDescription,
onChange,
onFocus,
placeholder,
@ -122,7 +123,7 @@ class InputPasswordWithErrors extends React.Component {
/>
<InputErrors
className={errorsClassName}
errors={this.state.errors}
errors={!noErrorsDescription && this.state.errors || []}
style={errorsStyle}
/>
</div>
@ -150,6 +151,7 @@ InputPasswordWithErrors.defaultProps = {
label: '',
labelClassName: '',
labelStyle: {},
noErrorsDescription: false,
placeholder: 'app.utils.placeholder.defaultMessage',
style: {},
tabIndex: '0',
@ -190,6 +192,7 @@ InputPasswordWithErrors.propTypes = {
labelClassName: PropTypes.string,
labelStyle: PropTypes.object,
name: PropTypes.string.isRequired,
noErrorsDescription: PropTypes.bool,
onBlur: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.func,

View File

@ -72,6 +72,7 @@ export function* submitData(action) {
yield call(request, `/users-permissions/${action.endPoint}`, opts);
yield put(submitSucceeded());
strapi.notification.success('users-permissions.notification.success.submit');
} catch(error) {
strapi.notification.error('notification.error');
}

View File

@ -110,6 +110,7 @@
"notification.error.fetchUser": "An error occurred while trying to fetch users",
"notification.info.emailSent": "The email has been sent",
"notification.success.delete": "The item has been deleted",
"notification.success.submit": "Settings have been updated",
"plugin.description.short": "Protect your API with a full-authentication process based on JWT",
"plugin.description.long": "Protect your API with a full-authentication process based on JWT. This plugin comes also with an ACL strategy that allows you to manage the permissions between the groups of users.",

View File

@ -110,6 +110,7 @@
"notification.error.fetchUser": "Une erreur est survenue en esssayent de récupérer les users",
"notification.info.emailSent": "L'email a été envoyé",
"notification.success.delete": "L'élément a bien été supprimé",
"notification.success.submit": "Les configurations ont bien été sauvegardés",
"plugin.description.short": "Protégez votre API avec un système d'authentification complet basé sur JWT",
"plugin.description.long": "Protégez votre API avec un système d'authentification complet basé sur JWT (JSON Web Token). Ce plugin ajoute aussi une stratégie ACL (Access Control Layer) qui vous permet de gérer les permissions entre les groupes d'utilisateurs.",