WebUI: Change structure of Identity submenu
Previously there were 'User Groups', 'Host Groups' and 'Netgroups' separately, now these three items are grouped into one named 'Groups' which has sidebar with three items mentioned above. This change allows us to move ID views into Identity submenu. https://pagure.io/freeipa/issue/6717 Reviewed-By: Simo Sorce <ssorce@redhat.com> Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
1 parent
aa8530b7af
commit
070bc48dd6
5 files changed
+48
-7
No files matched your search
@@ -32,7 +32,17 @@ define([
|
||||
'./entity'],
|
||||
function(on, IPA, $, phases, reg) {
|
||||
|
||||
var exp = IPA.group = {};
|
||||
var exp = IPA.group = {
|
||||
search_facet_group: {
|
||||
name: 'search',
|
||||
label: '@i18n:objects.group.group_categories',
|
||||
facets: {
|
||||
search_group: 'group_search',
|
||||
search_hostgroup: 'hostgroup_search',
|
||||
search_netgroup: 'netgroup_search'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
var make_spec = function() {
|
||||
return {
|
||||
@@ -40,6 +50,10 @@ return {
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
tab_label: '@i18n:objects.group.user_groups',
|
||||
facet_groups: [IPA.group.search_facet_group],
|
||||
tabs_in_sidebar: true,
|
||||
disable_facet_tabs: false,
|
||||
columns: [
|
||||
'cn',
|
||||
'gidnumber',
|
||||
|
||||
@@ -38,6 +38,10 @@ return {
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
tab_label: '@i18n:objects.hostgroup.host_group',
|
||||
facet_groups: [IPA.group.search_facet_group],
|
||||
tabs_in_sidebar: true,
|
||||
disable_facet_tabs: false,
|
||||
columns: [
|
||||
'cn',
|
||||
'description'
|
||||
@@ -105,4 +109,4 @@ exp.register = function() {
|
||||
phases.on('registration', exp.register);
|
||||
|
||||
return exp;
|
||||
});
|
||||
});
|
||||
@@ -52,11 +52,26 @@ var nav = {};
|
||||
}
|
||||
]
|
||||
},
|
||||
{ entity: 'group' },
|
||||
{ entity: 'host' },
|
||||
{ entity: 'hostgroup' },
|
||||
{ entity: 'netgroup' },
|
||||
{ entity: 'service' },
|
||||
{
|
||||
entity: 'group',
|
||||
label: '@i18n:objects.group.groups',
|
||||
facet: 'search',
|
||||
children: [
|
||||
{
|
||||
entity: 'hostgroup',
|
||||
facet: 'search',
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
entity: 'netgroup',
|
||||
facet: 'search',
|
||||
hidden: true
|
||||
}
|
||||
]
|
||||
},
|
||||
{ entity: 'idview' },
|
||||
{
|
||||
name: 'automember',
|
||||
label: '@i18n:tabs.automember',
|
||||
@@ -201,7 +216,6 @@ var nav = {};
|
||||
]
|
||||
},
|
||||
{ entity: 'idrange' },
|
||||
{ entity: 'idview' },
|
||||
{ entity: 'realmdomains' },
|
||||
{
|
||||
name: 'trusts',
|
||||
|
||||
@@ -43,6 +43,10 @@ var spec = {
|
||||
facets: [
|
||||
{
|
||||
$type: 'search',
|
||||
tab_label: '@i18n:objects.netgroup.netgroups',
|
||||
facet_groups: [IPA.group.search_facet_group],
|
||||
tabs_in_sidebar: true,
|
||||
disable_facet_tabs: false,
|
||||
columns: [
|
||||
'cn',
|
||||
'description'
|
||||
@@ -328,4 +332,4 @@ exp.register = function() {
|
||||
phases.on('registration', exp.register);
|
||||
|
||||
return exp;
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user