mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 13:25:02 -02: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.onSettingsNavItem = true;
|
||||||
scope.navVm.showSettingsSubMenu = true;
|
scope.navVm.showSettingsSubMenu = true;
|
||||||
}, () => {
|
}, () => {
|
||||||
|
scope.navVm.onSettingsNavItem = false;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
scope.navVm.onSettingsNavItem = false;
|
|
||||||
if (!scope.navVm.onSettingsSubPane) {
|
if (!scope.navVm.onSettingsSubPane) {
|
||||||
scope.navVm.showSettingsSubMenu = false;
|
scope.navVm.showSettingsSubMenu = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,10 +14,12 @@ function atSideNavLink (scope, element, attrs, ctrl) {
|
|||||||
element.find('.at-SettingsSubPane').hover(() => {
|
element.find('.at-SettingsSubPane').hover(() => {
|
||||||
scope.vm.onSettingsSubPane = true;
|
scope.vm.onSettingsSubPane = true;
|
||||||
}, () => {
|
}, () => {
|
||||||
if (!scope.vm.onSettingsNavItem) {
|
scope.vm.onSettingsSubPane = false;
|
||||||
scope.vm.onSettingsSubPane = false;
|
setTimeout(() => {
|
||||||
scope.vm.showSettingsSubMenu = false;
|
if (!scope.vm.onSettingsNavItem) {
|
||||||
}
|
scope.vm.showSettingsSubMenu = false;
|
||||||
|
}
|
||||||
|
}, 100);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user