-
Notifications
You must be signed in to change notification settings - Fork 114
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
Unclear default visibility for loginForm elements 3286 #3328
Unclear default visibility for loginForm elements 3286 #3328
Conversation
...flowui/src/main/java/io/jmix/flowui/xml/layout/loader/component/AbstractLoginFormLoader.java
Outdated
Show resolved
Hide resolved
...lowui/flowui-kit/src/main/java/io/jmix/flowui/kit/component/loginform/EnhancedLoginForm.java
Outdated
Show resolved
Hide resolved
jmix-flowui/flowui-kit/src/main/java/io/jmix/flowui/kit/component/loginform/JmixLoginI18n.java
Outdated
Show resolved
Hide resolved
...lowui/flowui-kit/src/main/java/io/jmix/flowui/kit/component/loginform/EnhancedLoginForm.java
Outdated
Show resolved
Hide resolved
jmix-flowui/flowui-kit/src/main/java/io/jmix/flowui/kit/component/loginform/JmixLoginI18n.java
Show resolved
Hide resolved
...lowui/flowui-kit/src/main/java/io/jmix/flowui/kit/component/loginform/EnhancedLoginForm.java
Outdated
Show resolved
Hide resolved
...flowui/src/main/java/io/jmix/flowui/xml/layout/loader/component/AbstractLoginFormLoader.java
Outdated
Show resolved
Hide resolved
@StudioProperty(xmlAttribute = "enabled", type = StudioPropertyType.BOOLEAN, | ||
defaultValue = "true"), | ||
@StudioProperty(xmlAttribute = "localesVisible", type = StudioPropertyType.BOOLEAN), | ||
@StudioProperty(xmlAttribute = "localesVisible", type = StudioPropertyType.BOOLEAN, | ||
defaultValue = "false"), |
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's still visible, even if true
is not set explicitly.
When you fix it, the other problem will appear that you need to set it to true
explicitly, otherwise all existing views will be broken. Let's set it to true if io.jmix.flowui.kit.component.loginform.EnhancedLoginForm#setLocaleItems
with not empty value to avoid breaking changes
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.
If we set localesVisible to true depending on the number of available locales - do we need this property at all?
loginForm.localesSelect.hidden = locales.length > 1 ? false : true;
The locales select with single item doesn't have any matter.
#3286