From 01a9e7ef9e58e14fdb362bdd61b22d667d773052 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 10 Oct 2014 10:50:35 +0200 Subject: [PATCH] webui: hide (un)apply buttons for Default Trust View Reviewed-By: Endi Sukma Dewata --- install/ui/src/freeipa/idviews.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/install/ui/src/freeipa/idviews.js b/install/ui/src/freeipa/idviews.js index 5c2562864..1d082c4d4 100644 --- a/install/ui/src/freeipa/idviews.js +++ b/install/ui/src/freeipa/idviews.js @@ -185,7 +185,17 @@ return { target_entity: 'host', target_facet: 'details' } - ] + ], + state: { + evaluators: [ + { + $factory: mod_details.value_state_evaluator, + attribute: 'cn', + value: idviews.DEFAULT_TRUST_VIEW, + representation: 'cn_default_trust_view' + } + ] + } } ], @@ -406,6 +416,7 @@ idviews.apply_action = function(spec) { spec = spec || {}; spec.name = spec.name || 'idview_apply'; spec.label = spec.label || '@i18n:objects.idview.apply_hosts'; + spec.hide_cond = spec.hide_cond || ['cn_default_trust_view']; var that = IPA.action(spec);