-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 214 - User settings should show if the user is disabled #222
Issue 214 - User settings should show if the user is disabled #222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see the comment below.
@@ -58,6 +60,8 @@ const ActiveUsersTabs = () => { | |||
return <DataSpinner />; | |||
} | |||
|
|||
const disabled = userSettingsData.user.nsaccountlock; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that this variable is always true for enabled and disabled users, so the lock icon is being shown for all users. Maybe this is related to the way the data is retrieved (not 100% sure though).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I originally built this on top of your kabob work. So I think we need to get your PR's merged first then this will start working correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so maybe we can postpone the review of this one until all kebab PRs are merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working now, so I'm resolving this conversation thread.
If a user is disabled then show a "locked" icon next tothe user name in the userSettings page fixes: freeipa#214 Signed-off-by: Mark Reynolds <mreynolds@redhat.com>
f5b06ed
to
a27a120
Compare
@carma12 ok it's working now, please review... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code seems ok - Although this solution is still using the previous PatternFly 4 library, so rebasing from recent changes and doing a quick npm install
is encouraged.
This was rebased and already had npm install done. I am using PF5 classes, so I'm not sure what issues you are running into. Please elaborate... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, I had a previous version of the solution and I forgot to pull the new changes. Sorry for the confusion :)
The changes LGTM, hence approving this PR.
@@ -58,6 +60,8 @@ const ActiveUsersTabs = () => { | |||
return <DataSpinner />; | |||
} | |||
|
|||
const disabled = userSettingsData.user.nsaccountlock; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is working now, so I'm resolving this conversation thread.
Whew! You had me worried for a moment as I didn't see anything wrong with it :-) |
If a user is disabled then show a "locked" icon next to the user name in the userSettings page
fixes: #214