diff --git a/lib/js/interface/top.js b/lib/js/interface/top.js index dd39731e..173b0657 100644 --- a/lib/js/interface/top.js +++ b/lib/js/interface/top.js @@ -308,11 +308,17 @@ angular.module(moduleName, []) }; this.activeClickedLink = activeLink => { + if ((activeLink === '1' || activeLink === '4') && + this.activeLink === activeLink) { + //toggle prompts show/hide + this.activeLink = false; + } else { - this.activeLink = activeLink; - $rootScope.$emit('top-bar:active-link', { - 'link': activeLink - }); + this.activeLink = activeLink; + $rootScope.$emit('top-bar:active-link', { + 'link': activeLink + }); + } }; //show if new npm version is available in view