From 8dcaa8f17b94fd7056340622e49d8ab505694603 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 15 Jan 2014 18:01:02 +0100 Subject: [PATCH] Trust domains Web UI Add Web UI counterpart of following CLI commands: * trust-fetch-domains Refresh list of the domains associated with the trust * trustdomain-del Remove infromation about the domain associated with the trust. * trustdomain-disable Disable use of IPA resources by the domain of the trust * trustdomain-enable Allow use of IPA resources by the domain of the trust * trustdomain-find Search domains of the trust https://fedorahosted.org/freeipa/ticket/4119 --- install/ui/src/freeipa/search.js | 11 +++--- install/ui/src/freeipa/trust.js | 68 ++++++++++++++++++++++++++++++++++++++ install/ui/test/data/ipa_init.json | 1 + ipalib/plugins/internal.py | 1 + 4 files changed, 77 insertions(+), 4 deletions(-) diff --git a/install/ui/src/freeipa/search.js b/install/ui/src/freeipa/search.js index c2e678a35e7d7d5179c1b766eea88599710593c3..3f7fdf9b1e6716c73e0657dc678abe332f6fc8c0 100644 --- a/install/ui/src/freeipa/search.js +++ b/install/ui/src/freeipa/search.js @@ -470,20 +470,23 @@ IPA.batch_items_action = function(spec) { that.execute_action = function(facet, on_success, on_error) { var entity = facet.managed_entity; - var pkeys = facet.get_selected_values(); + var selected_keys = facet.get_selected_values(); + var pkeys = facet.get_pkeys(); + if (!pkeys[0]) pkeys = []; // correction for search facet that.batch = IPA.batch_command({ name: entity.name + '_batch_'+ that.method, on_success: that.get_on_success(facet, on_success) }); - for (var i=0; i