1
0
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:
John Mitchell 2018-10-08 14:06:10 -04:00
parent 4b26ac06ba
commit 8f4aa5511b
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94
2 changed files with 7 additions and 5 deletions

View File

@ -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;
}

View File

@ -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);
});
}