summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2015-06-26 10:33:58 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-03 10:42:16 +0200
commit8d8aa60dbd5fe294e5beb4aa837cbf9b44457d09 (patch)
treea6e241ac5b79b3a3106571083d0a2055882216aa
parent114f11fe5a1229cf50d95b68e973e3f2dc2c27fb (diff)
downloadfreeipa-8d8aa60dbd5fe294e5beb4aa837cbf9b44457d09.tar.gz
freeipa-8d8aa60dbd5fe294e5beb4aa837cbf9b44457d09.tar.xz
freeipa-8d8aa60dbd5fe294e5beb4aa837cbf9b44457d09.zip
webui: fix webui specific metadata
Mark all Web UI specific metadata so they could be filtered out in the API Browser. Fix cert name. https://fedorahosted.org/freeipa/ticket/3129 Reviewed-By: Martin Kosek <mkosek@redhat.com> Reviewed-By: Tomas Babej <tbabej@redhat.com>
-rwxr-xr-xinstall/ui/src/freeipa/certificate.js3
-rw-r--r--install/ui/src/freeipa/topology.js1
2 files changed, 3 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js
index ccaa25807..182ec7e66 100755
--- a/install/ui/src/freeipa/certificate.js
+++ b/install/ui/src/freeipa/certificate.js
@@ -970,7 +970,7 @@ exp.create_cert_metadata = function() {
'show',
'status'
];
- entity.name = "certificate";
+ entity.name = "cert";
entity.object_name = "certificate";
entity.object_name_plural = "certificates";
entity.parent_object = "";
@@ -978,6 +978,7 @@ exp.create_cert_metadata = function() {
entity.rdn_attribute = "";
entity.relationships = {};
entity.takes_params = lang.clone(entity.takes_options);
+ entity.only_webui = true;
get_param(entity.takes_params, 'subject').flags = ['no_update'];
var reason = get_param(entity.takes_params, 'revocation_reason');
diff --git a/install/ui/src/freeipa/topology.js b/install/ui/src/freeipa/topology.js
index 9ca31741f..4d585947b 100644
--- a/install/ui/src/freeipa/topology.js
+++ b/install/ui/src/freeipa/topology.js
@@ -261,6 +261,7 @@ topology.domainlevel_metadata = function(spec, context) {
name: 'domainlevel',
label: text.get('@i18n:objects.domainlevel.label'),
label_singular: text.get('@i18n:objects.domainlevel.label_singular'),
+ only_webui: true,
takes_params: [
{
'class': "Int",