From 576c3d0c36f5d0979b29a8707697fab981f5c3ae Mon Sep 17 00:00:00 2001 From: Gabriel Dutra Date: Tue, 29 Jan 2019 01:48:18 -0200 Subject: [PATCH] Remove action buttons for disabled users --- client/app/components/users/UserEdit.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/app/components/users/UserEdit.jsx b/client/app/components/users/UserEdit.jsx index 4077c6735e..edcf9ff4d6 100644 --- a/client/app/components/users/UserEdit.jsx +++ b/client/app/components/users/UserEdit.jsx @@ -137,10 +137,14 @@ export class UserEdit extends React.Component {
{this.changePasswordModal()} - {!user.isDisabled && this.renderApiKey()} -
- - {currentUser.isAdmin && } + {!user.isDisabled && ( + + {this.renderApiKey()} +
+ + {currentUser.isAdmin && } +
+ )} ); }