Improvements

This commit is contained in:
Vitor de Miranda Henrique
2016-12-09 14:43:14 -08:00
parent 2a9aa4bcf9
commit 54edeafa07

View File

@@ -33,22 +33,29 @@
</tr>
</table>
<div data-bind="visible: settings.settings.plugins.enclosure.io1Enable">
<h4><p data-bind="html: settings.settings.plugins.enclosure.io1Label"></p></h4>
<button type="submit" data-bind="click: handleIO.bind($data, ['io1', 'on']), enable: settings.settings.plugins.enclosure.io1Enable && isConnected()" class="btn">Turn on</button>
<button type="submit" data-bind="click: handleIO.bind($data, ['io1', 'off']), enable: settings.settings.plugins.enclosure.io1Enable && isConnected()" class="btn">Turn off</button>
</div>
<div data-bind="visible: settings.settings.plugins.enclosure.io2Enable">
<h4><p data-bind="html: settings.settings.plugins.enclosure.io2Label"></p></h4>
<button type="submit" data-bind="click: handleIO.bind($data, ['io2', 'on']), enable: settings.settings.plugins.enclosure.io2Enable && isConnected()" class="btn">Turn on</button>
<button type="submit" data-bind="click: handleIO.bind($data, ['io2', 'off']), enable: settings.settings.plugins.enclosure.io2Enable && isConnected()" class="btn">Turn off</button>
</div>
<div data-bind="visible: settings.settings.plugins.enclosure.io3Enable">
<h4><p data-bind="html: settings.settings.plugins.enclosure.io3Label"></p></h4>
<button type="submit" data-bind="click: handleIO.bind($data, ['io3', 'on']), enable: settings.settings.plugins.enclosure.io3Enable && isConnected()" class="btn">Turn on</button>
<button type="submit" data-bind="click: handleIO.bind($data, ['io3', 'off']), enable: settings.settings.plugins.enclosure.io3Enable && isConnected()" class="btn">Turn off</button>
</div>
<div data-bind="visible: settings.settings.plugins.enclosure.io4Enable">
<h4><p data-bind="html: settings.settings.plugins.enclosure.io4Label"></p></h4>
<button type="submit" data-bind="click: handleIO.bind($data, ['io4', 'on']), enable: settings.settings.plugins.enclosure.io4Enable && isConnected()" class="btn">Turn on</button>
<button type="submit" data-bind="click: handleIO.bind($data, ['io4', 'off']), enable: settings.settings.plugins.enclosure.io4Enable && isConnected()" class="btn">Turn off</button>
</div>