mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix trustconfig after rebase
https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
@@ -117,7 +117,15 @@ var nav = {};
|
|||||||
{entity: 'selfservice'},
|
{entity: 'selfservice'},
|
||||||
{entity: 'delegation'},
|
{entity: 'delegation'},
|
||||||
{entity: 'idrange'},
|
{entity: 'idrange'},
|
||||||
{entity: 'trust'},
|
{
|
||||||
|
name: 'trusts',
|
||||||
|
label: '@i18n:tabs.trust',
|
||||||
|
children:[
|
||||||
|
{entity: 'trust'},
|
||||||
|
{entity: 'trustconfig'}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
{entity: 'config'}
|
{entity: 'config'}
|
||||||
]}
|
]}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -18,8 +18,16 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define(['./ipa', './jquery', './details', './search', './association',
|
define([
|
||||||
'./entity'], function(IPA, $) {
|
'./ipa',
|
||||||
|
'./jquery',
|
||||||
|
'./phases',
|
||||||
|
'./reg',
|
||||||
|
'./details',
|
||||||
|
'./search',
|
||||||
|
'./association',
|
||||||
|
'./entity'],
|
||||||
|
function(IPA, $, phases, reg) {
|
||||||
|
|
||||||
IPA.trust = {};
|
IPA.trust = {};
|
||||||
|
|
||||||
@@ -217,19 +225,19 @@ IPA.trust.config_entity = function(spec) {
|
|||||||
that.entity_init();
|
that.entity_init();
|
||||||
|
|
||||||
that.builder.details_facet({
|
that.builder.details_facet({
|
||||||
factory: IPA.trust.config_details_facet,
|
$factory: IPA.trust.config_details_facet,
|
||||||
trust_type: 'ad',
|
trust_type: 'ad',
|
||||||
sections: [
|
sections: [
|
||||||
{
|
{
|
||||||
name: 'details',
|
name: 'details',
|
||||||
label: IPA.messages.objects.trustconfig.options,
|
label: '@i18n:objects.trustconfig.options',
|
||||||
fields: [
|
fields: [
|
||||||
'cn',
|
'cn',
|
||||||
'ipantsecurityidentifier',
|
'ipantsecurityidentifier',
|
||||||
'ipantflatname',
|
'ipantflatname',
|
||||||
'ipantdomainguid',
|
'ipantdomainguid',
|
||||||
{
|
{
|
||||||
type: 'trust_fallbackgroup_select',
|
$type: 'trust_fallbackgroup_select',
|
||||||
name: 'ipantfallbackprimarygroup',
|
name: 'ipantfallbackprimarygroup',
|
||||||
other_entity: 'group',
|
other_entity: 'group',
|
||||||
other_field: 'cn',
|
other_field: 'cn',
|
||||||
@@ -290,11 +298,19 @@ IPA.trust.fallbackgroup_select_widget = function(spec) {
|
|||||||
return that;
|
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('trust', IPA.trust.entity);
|
||||||
IPA.register('trustconfig', IPA.trust.config_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 {};
|
return {};
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user