From 617114aac420a672c09b3279205402d0afed87ec Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 12 Mar 2013 17:00:32 +0100 Subject: Don't show trusts pages when trust is not configured When trust is not configured trust-config page is raising an error. Trusts search page won't find anything either -> no use for the pages -> hiding. https://fedorahosted.org/freeipa/ticket/3333 --- install/ui/src/freeipa/trust.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'install/ui/src/freeipa/trust.js') diff --git a/install/ui/src/freeipa/trust.js b/install/ui/src/freeipa/trust.js index 25ddb5cdf..7f4f054d1 100644 --- a/install/ui/src/freeipa/trust.js +++ b/install/ui/src/freeipa/trust.js @@ -28,6 +28,13 @@ IPA.trust.entity = function(spec) { var that = IPA.entity(spec); that.init = function() { + + if (!IPA.trust_enabled) { + throw { + expected: true + }; + } + that.entity_init(); that.builder.search_facet({ @@ -198,6 +205,13 @@ IPA.trust.config_entity = function(spec) { var that = IPA.entity(spec); that.init = function() { + + if (!IPA.trust_enabled) { + throw { + expected: true + }; + } + that.entity_init(); that.builder.details_facet({ -- cgit