diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2015-05-25 19:15:16 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-06-04 13:20:44 +0200 |
commit | 55bf33cce2ff6bcd49e2281dff31b2a2e24e6fb2 (patch) | |
tree | 90f0f4b6002ea0486ee4d6404a04c1b1d787136a /install | |
parent | ed78dcfa3acde7aeb1f381f49988c6911c5277ee (diff) | |
download | freeipa-55bf33cce2ff6bcd49e2281dff31b2a2e24e6fb2.tar.gz freeipa-55bf33cce2ff6bcd49e2281dff31b2a2e24e6fb2.tar.xz freeipa-55bf33cce2ff6bcd49e2281dff31b2a2e24e6fb2.zip |
webui: make usage of --all in details facet optional
refactoring for domains level UI
https://fedorahosted.org/freeipa/ticket/4997
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/src/freeipa/details.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/details.js b/install/ui/src/freeipa/details.js index 01fcfc565..98c2bdc76 100644 --- a/install/ui/src/freeipa/details.js +++ b/install/ui/src/freeipa/details.js @@ -552,6 +552,15 @@ exp.details_facet = IPA.details_facet = function(spec, no_init) { that.check_rights = spec.check_rights !== undefined ? spec.check_rights : true; /** + * Get all fields + * + * Controls obtaining of all attributes on refresh and update + * + * @property {boolean} + */ + that.get_all_attrs = spec.get_all_attrs !== undefined ? spec.get_all_attrs: true; + + /** * Facet label * @property {string} */ @@ -868,7 +877,8 @@ exp.details_facet = IPA.details_facet = function(spec, no_init) { var args = that.get_pkeys(); - var options = { all: true }; + var options = {}; + if (that.get_all_attrs) options.all = true; if (that.check_rights) options.rights = true; var command = rpc.command({ @@ -992,7 +1002,8 @@ exp.details_facet = IPA.details_facet = function(spec, no_init) { */ that.create_refresh_command = function() { - var options = { all: true }; + var options = {}; + if (that.get_all_attrs) options.all = true; if (that.check_rights) options.rights = true; var command = rpc.command({ |