equal
deleted
inserted
replaced
424 {this.renderToolbarButtons()} |
424 {this.renderToolbarButtons()} |
425 </div> |
425 </div> |
426 ) |
426 ) |
427 } |
427 } |
428 |
428 |
|
429 renderToolbarCheckbox = () => { |
|
430 return ( |
|
431 <div className="checkbox"> |
|
432 <label> |
|
433 <input type="checkbox" checked={this.props.isChecked} onChange={this.onCheckboxChange} /> <kbd>Enter</kbd> = add note |
|
434 </label> |
|
435 </div> |
|
436 ) |
|
437 } |
|
438 |
429 renderToolbarButtons = () => { |
439 renderToolbarButtons = () => { |
430 if (!this.props.withButtons) { |
|
431 return ( |
|
432 <div /> |
|
433 ) |
|
434 } |
|
435 |
|
436 return ( |
440 return ( |
437 <div> |
441 <div> |
438 <div className="checkbox"> |
442 { !this.props.note && this.renderToolbarCheckbox() } |
439 <label> |
443 <Button bsStyle="primary" disabled={this.props.isButtonDisabled} onClick={this.onButtonClick}> |
440 <input type="checkbox" checked={this.props.isChecked} onChange={this.onCheckboxChange} /> <kbd>Enter</kbd> = add note |
444 { this.props.note ? 'Save note' : 'Add note' } |
441 </label> |
445 </Button> |
442 </div> |
|
443 <Button bsStyle="primary" disabled={this.props.isButtonDisabled} onClick={this.onButtonClick}>Add note</Button> |
|
444 </div> |
446 </div> |
445 ); |
447 ); |
446 } |
448 } |
447 |
449 |
448 /** |
450 /** |