garrensmith commented on a change in pull request #1023: Add show/hide alert
badge on navbar items
URL: https://github.com/apache/couchdb-fauxton/pull/1023#discussion_r151971403
##########
File path: app/addons/fauxton/navigation/stores.js
##########
@@ -135,6 +135,27 @@ Stores.NavBarStore = FauxtonAPI.Store.extend({
oldLink.href = link.href;
},
+ showLinkBadge (link) {
+ const links = this.getLinkSection(link);
+ const selectedLink = _.find(links, function (oldLink) {
Review comment:
Could you rather use the `Array.find` instead of underscore
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services