diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-08-15 14:05:50 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-08-22 15:23:56 +0200 |
commit | e61c2e34411ad1713086813e938b09a464c4ffa6 (patch) | |
tree | a0624b23eac7d7a3cd87d1a648687130493f61b2 | |
parent | ca0d959df8020c4e5c7bf9dd5d27556158e7191d (diff) | |
download | freeipa-e61c2e34411ad1713086813e938b09a464c4ffa6.tar.gz freeipa-e61c2e34411ad1713086813e938b09a464c4ffa6.tar.xz freeipa-e61c2e34411ad1713086813e938b09a464c4ffa6.zip |
Hide 'New Certificate' action on CA-less install
This action calls cert-request command which is not available on CA-less installs. Thus this action won't be enabled and therefore there is no reason to keep it visible.
https://fedorahosted.org/freeipa/ticket/3363
-rwxr-xr-x | install/ui/src/freeipa/certificate.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js index 897939087..2fab64b7f 100755 --- a/install/ui/src/freeipa/certificate.js +++ b/install/ui/src/freeipa/certificate.js @@ -615,6 +615,7 @@ IPA.cert.request_action = function(spec) { spec.name = spec.name || 'request_cert'; spec.label = spec.label || '@i18n:objects.cert.new_certificate'; spec.enable_cond = spec.enable_cond || ['ra_enabled']; + spec.hide_cond = spec.hide_cond || ['ra_disabled']; var that = IPA.action(spec); that.entity_label = spec.entity_label; |