Antonio-Maranhao opened a new pull request #1025: Show a badge on a tab header
URL: https://github.com/apache/couchdb-fauxton/pull/1025
 
 
   ## Overview
   
   Add ability to show a badge on a tab header.
   
   
![image](https://user-images.githubusercontent.com/30349380/32925087-0f6ea9b6-cb0e-11e7-9e7b-fafa9773291a.png)
   
   
   ## Testing recommendations
   
   To see it in action you can replace the code in 
https://github.com/apache/couchdb-fauxton/blob/master/app/addons/activetasks/components.js#L119
 with: 
   ```
   <TabElement
               key={i}
               selected={checked}
               text={radioName}
               onChange={this.onRadioClick}
               badgeText={ i == 1 ? '999' : ''} />
   ```
   
   ## 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:
[email protected]


With regards,
Apache Git Services

Reply via email to