We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mappings with only one entry are not correctly rendered.
My item:
Switch MuteAutoNoUpdate "mute (no autoupdate)" <mute> {channel="xxx"}
My sitempa:
Frame label="Mappings - autoupdate" { Switch item=MuteAutoNoUpdate Switch item=MuteAutoNoUpdate mappings=[ON="Muet"] Switch item=MuteAutoNoUpdate mappings=[ON="Mute", OFF="Listen"] }
The sound is muted so the item state is OFF. Here is how it looks when I open the page:
The second widget (at right) is not as expected, it should be shown as "ppushed". It should be rendered similar as with the third widget.
It shoud like this when I open the page while the device is muted:
And like this when the device is unmuted:
The problem is clearly in SwitchRenderer where "mdl-button--accent" is not set when there is only one button !
SwitchRenderer
The text was updated successfully, but these errors were encountered:
Note that it is working well in Android app.
Sorry, something went wrong.
[basicUI] Fix handling of buttons when only 1 button
2834430
Fix openhab#1131 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
[basicUI] Fix handling of buttons when only 1 button (#1132)
36658f5
Fix #1131 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Successfully merging a pull request may close this issue.
Which UI are you reporting an issue for?
The problem
Mappings with only one entry are not correctly rendered.
My item:
My sitempa:
The sound is muted so the item state is OFF.
![image](https://user-images.githubusercontent.com/10186704/125627051-e899390c-7c4f-4100-bb9d-d48fa3a0055e.png)
Here is how it looks when I open the page:
The second widget (at right) is not as expected, it should be shown as "ppushed". It should be rendered similar as with the third widget.
Expected behavior
It shoud like this when I open the page while the device is muted:
![image](https://user-images.githubusercontent.com/10186704/125627446-412a264a-fa82-4e74-9a24-c3c5752c7d45.png)
And like this when the device is unmuted:
![image](https://user-images.githubusercontent.com/10186704/125628631-ca315fa7-72dc-4a19-939b-91da4b9d8be2.png)
The problem is clearly in
SwitchRenderer
where "mdl-button--accent" is not set when there is only one button !The text was updated successfully, but these errors were encountered: