diff options
| author | Pavel Vomacka <pvomacka@redhat.com> | 2016-10-05 11:44:13 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2017-03-14 10:40:10 +0100 |
| commit | 042e113db9bc66dcd0da0d5e8b8d025212695705 (patch) | |
| tree | d09d5a4896b776691cffe08dce54c65472ef4b4b | |
| parent | bbca1d9219bfab9f204cb0217495cbd94b7098be (diff) | |
| download | freeipa-042e113db9bc66dcd0da0d5e8b8d025212695705.tar.gz freeipa-042e113db9bc66dcd0da0d5e8b8d025212695705.tar.xz freeipa-042e113db9bc66dcd0da0d5e8b8d025212695705.zip | |
Add possibility to pass url parameter to update command of details page
'update_attribute' can contain a name of field in details page. In that case the value
of the field with field name will be appended to the update command options.
Part of: https://fedorahosted.org/freeipa/ticket/5426
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
| -rw-r--r-- | install/ui/src/freeipa/details.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/details.js b/install/ui/src/freeipa/details.js index d1f230527..a38b3a300 100644 --- a/install/ui/src/freeipa/details.js +++ b/install/ui/src/freeipa/details.js @@ -554,6 +554,13 @@ exp.details_facet = IPA.details_facet = function(spec, no_init) { that.update_command_name = spec.update_command_name || 'mod'; /** + * Name of url argument which will be added to update RPC command as option. + * + * @property {string} + */ + that.update_attribute = spec.update_attribute || null; + + /** * Command mode * Command mode determines how update information on update is collected. * There are two modes: @@ -929,6 +936,10 @@ exp.details_facet = IPA.details_facet = function(spec, no_init) { options: options }); + if (that.update_attribute) { + that.add_url_arg_to_command(command, that.update_attribute); + } + //set command options that.add_fields_to_command(update_info, command); |
