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
[ui] Fixes dynamic options #1050
Conversation
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Fix #1040 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@cweitkamp : can you please review and check that your change has no other impact. |
This reverts commit 9e16bc1.
@lolodomo Here you are: lolodomo#2 |
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Use fragment.options if own options are empty -> Added unit tests
I merged your tests but did not test them. |
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.
LGTM. Thanks.
The only thing I worry about is: What happens if the original fragment has options and the new fragment to be merged with too? So it is not really a "merge" but more or less a "use own unless null or empty than others".
Yes, that's true. But I don't know in practice how it could occur. |
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
* Fix dynamic options in UI * Added unit tests Fixes openhab#1040 Also-by: Christoph Weitkamp <github@christophweitkamp.de> Signed-off-by: Laurent Garnier <lg.hc@free.fr> GitOrigin-RevId: 7b49f27
Fix #1040
Signed-off-by: Laurent Garnier lg.hc@free.fr