You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's not possible to show/hide the model cards (the ones generated from the semantic model) for roles or users.
With widget components, this can be achieved by defining the config options visible and visibleTo.
Your suggestion
model-card.vue already uses the widget-mixin.js mixin, which provides the visible computed property based on those config options, but this computed property is not used in the template.
The template should be modified accordingly.
Only render model-card if `visible` computed property is `true`.
Hide divs in model-tabs which do not have a visible model-card.
Closesopenhab#2143
Signed-off-by: Thomas Wunschel <thomas.wunschel@twistsolutions.de>
Only render model-card if `visible` computed property is `true`.
Hide divs in model-tabs which do not have a visible model-card.
Closesopenhab#2143
Signed-off-by: Thomas Wunschel <thomas.wunschel@twistsolutions.de>
Signed-off-by: Thomas Wunschel <4302898+wuschi@users.noreply.github.com>
Closes#2143.
Only render model-card if `visible` computed property is `true`.
Hide divs in model-tabs which do not have a visible model-card.
Signed-off-by: Thomas Wunschel <thomas.wunschel@twistsolutions.de>
The problem
Currently it's not possible to show/hide the model cards (the ones generated from the semantic model) for roles or users.
With widget components, this can be achieved by defining the config options
visible
andvisibleTo
.Your suggestion
model-card.vue
already uses thewidget-mixin.js
mixin, which provides thevisible
computed property based on those config options, but this computed property is not used in the template.The template should be modified accordingly.
Your environment
openHAB 4.1.0
Build #3680
Additional information
See this community thread for further examples
The text was updated successfully, but these errors were encountered: