зеркало из https://github.com/mozilla/smarthome.git
Paper UI: show slider only if item is not read only (#1587)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
This commit is contained in:
Родитель
ac243b7862
Коммит
893554bd64
|
@ -81,7 +81,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div layout="row" layout-align="start center" class="number-control-widget">
|
||||
<div ng-show="!isReadOnly(item)" layout="row" layout-align="start center" class="number-control-widget">
|
||||
<span flex="15" class="text-left" ng-if="getMinText(item)">{{getMinText(item)}}</span>
|
||||
<md-slider class="md-default-theme" flex="70" min="{{item.stateDescription.minimum}}" max="{{item.stateDescription.maximum}}" step="{{item.stateDescription.step}}" ng-model="item.state" md-discrete="true" ng-if="getMinText(item) && getMaxText(item)" ng-change="sendCommand(item.state)" aria-label={{item.label}}></md-slider>
|
||||
<span flex="15" class="text-right" ng-if="getMaxText(item)">{{getMaxText(item)}}</span>
|
||||
|
|
Загрузка…
Ссылка в новой задаче