1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

実装 - PlanetHeaderにPrivate鍵表示

This commit is contained in:
Rokt33r
2015-08-20 16:41:05 +09:00
parent 2fb51fe37c
commit caf7606893
3 changed files with 39 additions and 2 deletions

View File

@@ -37,7 +37,15 @@ module.exports = React.createClass({
<div className='headerLabel'>
<span className='userName'>{currentUserName}</span><br/>
<span className='planetName'>{currentPlanetName}</span>
<button onClick={this.openPlanetSettingModal} className='menuBtn'>
{this.props.currentPlanet.public ? null : (
<div className='private'>
<i className='fa fa-lock'/>
<div className='privateTooltip'>Private planet</div>
</div>
)}
<button onClick={this.openPlanetSettingModal} className='menuBtn'>
<i className='fa fa-chevron-down'></i>
</button>
</div>