Skip to content

Commit

Permalink
Merge pull request openhab#1 from sja/patch-2
Browse files Browse the repository at this point in the history
Fix ternary operator
  • Loading branch information
dnobel committed Jan 28, 2015
2 parents 37b891b + 60fdd90 commit eae5080
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class="dimmer-widget">
<md-switch ng-if="!isReadOnly(item)" ng-model="item.state" ng-change="setOn(item.state)"
ng-true-value="'ON'" ng-false-value="'OFF'"></md-switch>
<h1 ng-if="isReadOnly(item)">{{item.state === 'ON' : 'ON' : 'OFF'}}</h1>
<h1 ng-if="isReadOnly(item)">{{item.state === 'ON' ? 'ON' : 'OFF'}}</h1>
</div>
</div>
</div>
Expand Down Expand Up @@ -110,4 +110,4 @@ <h1 ng-if="item.stateDescription.readOnly" class="state">{{getStateText(item)}}<
</div>
</div>
</div>
</div>
</div>

0 comments on commit eae5080

Please sign in to comment.