summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-18 16:00:00 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:28 +0200
commit790853c5870fc82989692e9e63f3e829f124595b (patch)
tree07e77af9fcc07802730bbf376fbb736e7687d124
parentcf6b83a61efc41474802a8e5360a2cfb5eeed7b3 (diff)
downloadfreeipa-790853c5870fc82989692e9e63f3e829f124595b.tar.gz
freeipa-790853c5870fc82989692e9e63f3e829f124595b.tar.xz
freeipa-790853c5870fc82989692e9e63f3e829f124595b.zip
Fix trustconfig after rebase
https://fedorahosted.org/freeipa/ticket/3235
-rw-r--r--install/ui/src/freeipa/navigation/menu_spec.js10
-rw-r--r--install/ui/src/freeipa/trust.js32
2 files changed, 33 insertions, 9 deletions
diff --git a/install/ui/src/freeipa/navigation/menu_spec.js b/install/ui/src/freeipa/navigation/menu_spec.js
index 4d1b0a4b8..66116b583 100644
--- a/install/ui/src/freeipa/navigation/menu_spec.js
+++ b/install/ui/src/freeipa/navigation/menu_spec.js
@@ -117,7 +117,15 @@ var nav = {};
{entity: 'selfservice'},
{entity: 'delegation'},
{entity: 'idrange'},
- {entity: 'trust'},
+ {
+ name: 'trusts',
+ label: '@i18n:tabs.trust',
+ children:[
+ {entity: 'trust'},
+ {entity: 'trustconfig'}
+ ]
+ },
+
{entity: 'config'}
]}
]
diff --git a/install/ui/src/freeipa/trust.js b/install/ui/src/freeipa/trust.js
index bb442b010..da69d7776 100644
--- a/install/ui/src/freeipa/trust.js
+++ b/install/ui/src/freeipa/trust.js
@@ -18,8 +18,16 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['./ipa', './jquery', './details', './search', './association',
- './entity'], function(IPA, $) {
+define([
+ './ipa',
+ './jquery',
+ './phases',
+ './reg',
+ './details',
+ './search',
+ './association',
+ './entity'],
+ function(IPA, $, phases, reg) {
IPA.trust = {};
@@ -217,19 +225,19 @@ IPA.trust.config_entity = function(spec) {
that.entity_init();
that.builder.details_facet({
- factory: IPA.trust.config_details_facet,
+ $factory: IPA.trust.config_details_facet,
trust_type: 'ad',
sections: [
{
name: 'details',
- label: IPA.messages.objects.trustconfig.options,
+ label: '@i18n:objects.trustconfig.options',
fields: [
'cn',
'ipantsecurityidentifier',
'ipantflatname',
'ipantdomainguid',
{
- type: 'trust_fallbackgroup_select',
+ $type: 'trust_fallbackgroup_select',
name: 'ipantfallbackprimarygroup',
other_entity: 'group',
other_field: 'cn',
@@ -290,11 +298,19 @@ IPA.trust.fallbackgroup_select_widget = function(spec) {
return that;
};
-IPA.widget_factories['trust_fallbackgroup_select'] = IPA.trust.fallbackgroup_select_widget;
-IPA.field_factories['trust_fallbackgroup_select'] = IPA.field_factories['entity_select'];
-
IPA.register('trust', IPA.trust.entity);
IPA.register('trustconfig', IPA.trust.config_entity);
+IPA.trust.register = function() {
+
+ var w = reg.widget;
+ var f = reg.field;
+
+ w.register('trust_fallbackgroup_select', IPA.trust.fallbackgroup_select_widget);
+ f.register('trust_fallbackgroup_select', IPA.field);
+};
+
+phases.on('registration', IPA.trust.register);
+
return {};
}); \ No newline at end of file