mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-05 20:57:40 +00:00
GUACAMOLE-1904: Pass the client directly to the field to allow saving field values.
This commit is contained in:
@@ -124,6 +124,7 @@
|
||||
<guac-form namespace="getProtocolNamespace(focusedClient.protocol)"
|
||||
content="focusedClient.forms"
|
||||
model="menu.connectionParameters"
|
||||
client="focusedClient"
|
||||
model-only="true"></guac-form>
|
||||
</div>
|
||||
|
||||
|
@@ -79,7 +79,14 @@ angular.module('form').directive('guacForm', [function form() {
|
||||
*
|
||||
* @type String
|
||||
*/
|
||||
focused : '='
|
||||
focused : '=',
|
||||
|
||||
/**
|
||||
* The client associated with this form, if any.
|
||||
*
|
||||
* @type ManagedClient
|
||||
*/
|
||||
client: '='
|
||||
|
||||
},
|
||||
templateUrl: 'app/form/templates/form.html',
|
||||
|
@@ -68,7 +68,14 @@ angular.module('form').directive('guacFormField', [function formField() {
|
||||
*
|
||||
* @type Boolean
|
||||
*/
|
||||
focused : '='
|
||||
focused : '=',
|
||||
|
||||
/**
|
||||
* The client associated with this form field, if any.
|
||||
*
|
||||
* @type ManagedClient
|
||||
*/
|
||||
client: '='
|
||||
|
||||
},
|
||||
templateUrl: 'app/form/templates/formField.html',
|
||||
|
@@ -13,6 +13,7 @@
|
||||
data-disabled="disabled"
|
||||
focused="isFocused(field)"
|
||||
field="field"
|
||||
client="client"
|
||||
model="values[field.name]"></guac-form-field>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user