From 55bf33cce2ff6bcd49e2281dff31b2a2e24e6fb2 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 25 May 2015 19:15:16 +0200 Subject: webui: make usage of --all in details facet optional refactoring for domains level UI https://fedorahosted.org/freeipa/ticket/4997 Reviewed-By: Martin Babinsky --- install/ui/src/freeipa/details.js | 15 +++++++++++++-- 1 file 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 @@ -551,6 +551,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({ -- cgit