Skip to content

Commit baef73b

Browse files
committed
toggle install prompts clicking on active icon
1 parent a862430 commit baef73b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

lib/js/interface/top.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,17 @@ angular.module(moduleName, [])
308308
};
309309

310310
this.activeClickedLink = activeLink => {
311+
if ((activeLink === '1' || activeLink === '4') &&
312+
this.activeLink === activeLink) {
313+
//toggle prompts show/hide
314+
this.activeLink = false;
315+
} else {
311316

312-
this.activeLink = activeLink;
313-
$rootScope.$emit('top-bar:active-link', {
314-
'link': activeLink
315-
});
317+
this.activeLink = activeLink;
318+
$rootScope.$emit('top-bar:active-link', {
319+
'link': activeLink
320+
});
321+
}
316322
};
317323

318324
//show if new npm version is available in view

0 commit comments

Comments
 (0)