mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 14:41:21 +00:00
GUAC-932: Fix connection parameter directive and display.
This commit is contained in:
@@ -20,10 +20,11 @@
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
-->
|
||||
<input ng-show="parameterType === 'TEXT'" type="text" ng-model="parameterValue"/>
|
||||
<input ng-show="parameterType === 'NUMERIC'" type="number" ng-model="parameterValue"/>
|
||||
<input ng-show="parameterType === 'USERNAME'" type="text" ng-model="parameterValue"/>
|
||||
<input ng-show="parameterType === 'PASSWORD'" type="password" ng-model="parameterValue"/>
|
||||
<input ng-show="parameterType === 'BOOLEAN'" type="checkbox" ng-model="parameterValue"/>
|
||||
<select ng-show="parameterType === 'ENUM'" ng-model="parameterValue" ng-options="option.value as 'protocol.' + connection.protocol + '.parameters.' + parameter.name + '.options.' + (option.value || 'empty') | translate for option in parameter.options | orderBy: value"></select>
|
||||
|
||||
<input ng-show="parameter.type === 'TEXT'" type="text" ng-model="typedValue"/>
|
||||
<input ng-show="parameter.type === 'NUMERIC'" type="number" ng-model="typedValue"/>
|
||||
<input ng-show="parameter.type === 'USERNAME'" type="text" ng-model="typedValue"/>
|
||||
<input ng-show="parameter.type === 'PASSWORD'" type="password" ng-model="typedValue"/>
|
||||
<input ng-show="parameter.type === 'BOOLEAN'" type="checkbox" ng-model="typedValue"/>
|
||||
<select ng-show="parameter.type === 'ENUM'" ng-model="typedValue" ng-options="option.value as 'protocol.' + protocol.name + '.parameters.' + parameter.name + '.options.' + (option.value || 'empty') | translate for option in parameter.options | orderBy: value"></select>
|
||||
</span>
|
@@ -72,7 +72,7 @@ THE SOFTWARE.
|
||||
<tr ng-repeat="parameter in protocols[connection.protocol].parameters">
|
||||
<th>{{'protocol.' + connection.protocol + '.parameters.' + parameter.name + '.label' | translate}}:</th>
|
||||
<td>
|
||||
<guac-connection-parameter parameter="parameter" connection="connection" />
|
||||
<guac-connection-parameter protocol="protocols[connection.protocol]" name="parameter.name" value="connection.parameters[parameter.name]" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user