Skip to content

Commit

Permalink
toggle install prompts clicking on active icon
Browse files Browse the repository at this point in the history
  • Loading branch information
45kb committed Dec 11, 2016
1 parent a862430 commit baef73b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/js/interface/top.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit baef73b

Please sign in to comment.