if username changed, reject username should be disabled

This commit is contained in:
okbel
2018-05-29 13:24:53 -03:00
parent 4f76163541
commit 595e19231e
@@ -230,7 +230,7 @@ class UserDetail extends React.Component {
) : (
<ActionsMenuItem
onClick={this.showRejectUsernameDialog}
disabled={me.id === user.id}
disabled={me.id === user.id || usernameChanged}
>
{t('user_detail.reject_username')}
</ActionsMenuItem>