mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
update side nav settings pane show hide hover logic
This commit is contained in:
parent
4b26ac06ba
commit
8f4aa5511b
@ -8,8 +8,8 @@ function atSideNavItemLink (scope, element, attrs, ctrl) {
|
||||
scope.navVm.onSettingsNavItem = true;
|
||||
scope.navVm.showSettingsSubMenu = true;
|
||||
}, () => {
|
||||
scope.navVm.onSettingsNavItem = false;
|
||||
setTimeout(() => {
|
||||
scope.navVm.onSettingsNavItem = false;
|
||||
if (!scope.navVm.onSettingsSubPane) {
|
||||
scope.navVm.showSettingsSubMenu = false;
|
||||
}
|
||||
|
@ -14,10 +14,12 @@ function atSideNavLink (scope, element, attrs, ctrl) {
|
||||
element.find('.at-SettingsSubPane').hover(() => {
|
||||
scope.vm.onSettingsSubPane = true;
|
||||
}, () => {
|
||||
if (!scope.vm.onSettingsNavItem) {
|
||||
scope.vm.onSettingsSubPane = false;
|
||||
scope.vm.showSettingsSubMenu = false;
|
||||
}
|
||||
scope.vm.onSettingsSubPane = false;
|
||||
setTimeout(() => {
|
||||
if (!scope.vm.onSettingsNavItem) {
|
||||
scope.vm.showSettingsSubMenu = false;
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user