mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
hide automount tabs.
the tabs are required for natigation, but they should not be visible, as the breadcrub provides the navigation for them instead. Moved the automount tabs up one level so that it uses the two level style
This commit is contained in:
parent
4ea381649d
commit
d72fed190e
@ -174,12 +174,16 @@ IPA.navigation = function(spec) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('<li/>').append($('<a/>', {
|
var tab_li =$('<li/>').append($('<a/>', {
|
||||||
href: '#'+tab_id,
|
href: '#'+tab_id,
|
||||||
title: tab.label,
|
title: tab.label,
|
||||||
html: tab.label
|
html: tab.label
|
||||||
})).appendTo(ul);
|
})).appendTo(ul);
|
||||||
|
|
||||||
|
if (tab.hidden){
|
||||||
|
tab_li.css('display','none');
|
||||||
|
}
|
||||||
|
|
||||||
tab.container = $('<div/>', {
|
tab.container = $('<div/>', {
|
||||||
id: tab_id,
|
id: tab_id,
|
||||||
name: tab.name
|
name: tab.name
|
||||||
|
@ -53,10 +53,8 @@ IPA.admin_navigation = function(spec) {
|
|||||||
{entity: 'sudocmd'},
|
{entity: 'sudocmd'},
|
||||||
{entity: 'sudocmdgroup'}
|
{entity: 'sudocmdgroup'}
|
||||||
]},
|
]},
|
||||||
{name: 'automount', label: IPA.messages.tabs.automount, children: [
|
{entity: 'automountlocation', label: IPA.messages.tabs.automount},
|
||||||
{entity: 'automountlocation'},
|
{entity: 'automountmap',hidden:true},
|
||||||
{entity: 'automountmap'}
|
|
||||||
]},
|
|
||||||
{entity: 'pwpolicy'},
|
{entity: 'pwpolicy'},
|
||||||
{entity: 'krbtpolicy'}
|
{entity: 'krbtpolicy'}
|
||||||
]},
|
]},
|
||||||
|
Loading…
Reference in New Issue
Block a user