Add config options to remove fields from Connect dialog

This commit is contained in:
Jonas Herzig 2018-10-08 19:21:48 +02:00
parent 5f2798e78c
commit ad3669d8bc
3 changed files with 16 additions and 7 deletions

View file

@ -31,23 +31,23 @@
</div>
<form data-bind="submit: connect">
<table>
<tr>
<tr data-bind="if: $root.config.connectDialog.address">
<td>Address</td>
<td><input id="address" type="text" data-bind="value: address" required></td>
</tr>
<tr>
<tr data-bind="if: $root.config.connectDialog.port">
<td>Port</td>
<td><input id="port" type="text" data-bind="value: port" required></td>
</tr>
<tr>
<tr data-bind="if: $root.config.connectDialog.token">
<td>Token</td>
<td><input id="token" type="text" data-bind="value: token"></td>
</tr>
<tr>
<tr data-bind="if: $root.config.connectDialog.username">
<td>Username</td>
<td><input id="username" type="text" data-bind="value: username" required></td>
</tr>
<tr>
<tr data-bind="if: $root.config.connectDialog.password">
<td>Password</td>
<td><input id="password" type="password" data-bind="value: password"></td>
</tr>