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>
This commit is contained in:
Petr Vobornik authored and Tomas Babej committed 2015-07-03 10:42:16 +02:00
1 parent 114f11fe5a
commit 8d8aa60dbd
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -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');
+1
View File
@@ -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",