Skip to content

Commit 98d8b0a

Browse files
wbornkaikreuzer
authored andcommitted
[paper] Hide command options for read only items (openhab#68)
Hides the command options (added in eclipse-archived/smarthome#5131) for controls of read only items. Signed-off-by: Wouter Born <[email protected]>
1 parent eab9efa commit 98d8b0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bundles/org.openhab.ui.paper/web-src/js/control/string/component.control.string.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
<div layout="row" layout-align="start center" ng-if="::($ctrl.isOptionList($ctrl.item) && !$ctrl.item.readOnly)">
3232
<item-state-dropdown item="$ctrl.item" on-change="$ctrl.updateState()"></item-state-dropdown>
3333
</div>
34-
<item-command-options item="$ctrl.item" ng-if="::$ctrl.isCommandOptions()"></item-command-options>
34+
<item-command-options item="$ctrl.item" ng-if="::$ctrl.isCommandOptions() && !$ctrl.item.readOnly"></item-command-options>

bundles/org.openhab.ui.paper/web-src/js/control/switch/component.control.switch.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
<div layout="row" layout-align="start center" ng-if="::($ctrl.isOptionList($ctrl.item) && !$ctrl.item.readOnly)">
1818
<item-state-dropdown item="$ctrl.item" on-change="$ctrl.updateState()"></item-state-dropdown>
1919
</div>
20-
<item-command-options item="$ctrl.item" ng-if="::$ctrl.isCommandOptions()"></item-command-options>
20+
<item-command-options item="$ctrl.item" ng-if="::$ctrl.isCommandOptions() && !$ctrl.item.readOnly"></item-command-options>

0 commit comments

Comments
 (0)