GUACAMOLE-1904: Pass the client directly to the field to allow saving field values.

This commit is contained in:
James Muehlner
2024-01-02 21:21:47 +00:00
parent ddf9e723e3
commit 012663ed9a
4 changed files with 18 additions and 2 deletions

View File

@@ -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>

View File

@@ -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',

View File

@@ -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',

View File

@@ -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>