Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove current user from list #7

Merged
merged 2 commits into from
Oct 29, 2023
Merged

Conversation

mikecp
Copy link
Contributor

@mikecp mikecp commented Oct 28, 2023

This resolves issue #6 and I took the liberty to do some fine-tuning as follow

  • The current user does not appear in the list a,nymore

image

  • The "imperonate" button is disabled until you select a user (see image above)

  • If the list is empty, we display a message "no user to impersonate"

image

  • When a non-admin user opens the layer, we display a message "you need admin rights".

image

The two latter points are there because we actually always have the dashboard title "User Impersonation" displayed, which means that if the impersonation component itself would not display anything (like it is now), the user sees a title with nothing under it, and I thought this seemed kind of odd. 馃槈

Beware that updates to Danish translation file come from Google translate 馃槄

mikecp and others added 2 commits October 28, 2023 11:12
Display "no user" label in case there is no one to select
DIsplay "you ned admin rihts" on non-admin users
@skttl
Copy link
Owner

skttl commented Oct 29, 2023

Looks great - thanks!

@skttl skttl merged commit cff1382 into skttl:main Oct 29, 2023
1 check passed
@mikecp mikecp deleted the issue6_select_yourself branch October 30, 2023 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants