mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +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)"
|
<guac-form namespace="getProtocolNamespace(focusedClient.protocol)"
|
||||||
content="focusedClient.forms"
|
content="focusedClient.forms"
|
||||||
model="menu.connectionParameters"
|
model="menu.connectionParameters"
|
||||||
|
client="focusedClient"
|
||||||
model-only="true"></guac-form>
|
model-only="true"></guac-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -79,7 +79,14 @@ angular.module('form').directive('guacForm', [function form() {
|
|||||||
*
|
*
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
focused : '='
|
focused : '=',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The client associated with this form, if any.
|
||||||
|
*
|
||||||
|
* @type ManagedClient
|
||||||
|
*/
|
||||||
|
client: '='
|
||||||
|
|
||||||
},
|
},
|
||||||
templateUrl: 'app/form/templates/form.html',
|
templateUrl: 'app/form/templates/form.html',
|
||||||
|
@@ -68,7 +68,14 @@ angular.module('form').directive('guacFormField', [function formField() {
|
|||||||
*
|
*
|
||||||
* @type Boolean
|
* @type Boolean
|
||||||
*/
|
*/
|
||||||
focused : '='
|
focused : '=',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The client associated with this form field, if any.
|
||||||
|
*
|
||||||
|
* @type ManagedClient
|
||||||
|
*/
|
||||||
|
client: '='
|
||||||
|
|
||||||
},
|
},
|
||||||
templateUrl: 'app/form/templates/formField.html',
|
templateUrl: 'app/form/templates/formField.html',
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
data-disabled="disabled"
|
data-disabled="disabled"
|
||||||
focused="isFocused(field)"
|
focused="isFocused(field)"
|
||||||
field="field"
|
field="field"
|
||||||
|
client="client"
|
||||||
model="values[field.name]"></guac-form-field>
|
model="values[field.name]"></guac-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user