You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2017/11/16 17:51:31 UTC

[GitHub] Antonio-Maranhao opened a new pull request #1023: Add show/hide alert badge on navbar items

Antonio-Maranhao opened a new pull request #1023: Add show/hide alert badge on navbar items
URL: https://github.com/apache/couchdb-fauxton/pull/1023
 
 
   ## Overview
   
   Add ability to show/hide a badge on navbar items.
   This is useful when we want to alert users about changes in state on a different page, or inform users that are actions pending under one of the navbar links.
   
   Example: 
   ![image](https://user-images.githubusercontent.com/30349380/32906662-98a7e05a-cacb-11e7-976a-f16001981788.png)
   
   ## Testing recommendations
   
   This function is not in use yet, but you can use the code below in `addons/verifyinstall/base.js` to see it working: 
    
   ```
     FauxtonAPI.addHeaderLink({
       title: 'Verify',
       href: '#/verifyinstall',
       icon: 'fonticon-ok-circled',
       bottomNav: true
     });
     FauxtonAPI.showHeaderLinkBadge({title: 'Verify'});
     setTimeout(() => {
       FauxtonAPI.hideHeaderLinkBadge({title: 'Verify'});
     }, 5000);
   ``` 
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [x] Changes are covered by tests;
   - [ ] Documentation reflects the changes;
   - [ ] Update [rebar.config.script](https://github.com/apache/couchdb/blob/master/rebar.config.script) with the correct tag once a new Fauxton release is made
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services