mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 01:08:48 -03:30
update side nav settings pane show hide hover logic
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user