-
Notifications
You must be signed in to change notification settings - Fork 712
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
GUACAMOLE-1479: Change the style of disabled users/groups. #673
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.
Looks good, however the disabled
attribute is currently a custom attribute applied only by the JDBC extensions, so we can't add specific handling for that attribute directly within the webapp as-is.
We could:
- Standardize the attribute at the API level, allowing the webapp to make decisions regarding that attribute.
- Provide a standard API for enabling/disabling a user (ie: an
isDisabled()
andsetDisabled()
) which could then be exposed within the REST API and handled within the UI appropriately. - Move the handling of styling to the extension defining the attribute.
Given how common enabling/disabling a user or group is likely to be, regardless of backend implementation, I'd lean towards some kind of standardization.
guacamole/src/main/frontend/src/app/settings/templates/settingsUserGroups.html
Outdated
Show resolved
Hide resolved
guacamole/src/main/frontend/src/app/settings/templates/settingsUsers.html
Outdated
Show resolved
Hide resolved
@mike-jumper Okay, I've re-worked things to include moving the "disabled" status to the higher level interfaces and pull it out of the Attributes section. And I think the issues with the controller logic for the CSS style should be more reasonable, now. |
@mike-jumper Gentle nudge... |
b49318c
to
2f2d372
Compare
@mike-jumper Ping... |
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/User.java
Outdated
Show resolved
Hide resolved
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/UserGroup.java
Outdated
Show resolved
Hide resolved
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/User.java
Outdated
Show resolved
Hide resolved
1555983
to
673fa7c
Compare
…and UserGroup classes.
… users and user groups.
@mike-jumper Gentle nudge. |
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Identifiable.java
Outdated
Show resolved
Hide resolved
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/Identifiable.java
Outdated
Show resolved
Hide resolved
@mike-jumper Ping... |
This change implements a style change for users and groups that are disabled, changing the font color to gray and italicizing the user or group name.