Hide Absolute Time Range dropdown header in Rule Alert creation

Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
pull/1744/head
Jared Scheib 2017-08-14 15:22:20 -07:00 committed by Alex Paxton
parent 7ab550b77c
commit 19a0a0ed9d
1 changed files with 17 additions and 13 deletions

View File

@ -112,21 +112,25 @@ class TimeRangeDropdown extends Component {
autoHeight={true}
maxHeight={DROPDOWN_MENU_MAX_HEIGHT}
>
<li className="dropdown-header">Absolute Time Ranges</li>
{preventCustomTimeRange
? null
: <li
className={
isCustomTimeRangeOpen
? 'active dropdown-item custom-timerange'
: 'dropdown-item custom-timerange'
}
>
<a href="#" onClick={this.showCustomTimeRange}>
Custom Date Picker
</a>
</li>}
<li className="dropdown-header">Relative Time Ranges</li>
: <div>
<li className="dropdown-header">Absolute Time Ranges</li>
<li
className={
isCustomTimeRangeOpen
? 'active dropdown-item custom-timerange'
: 'dropdown-item custom-timerange'
}
>
<a href="#" onClick={this.showCustomTimeRange}>
Custom Date Picker
</a>
</li>
</div>}
<li className="dropdown-header">
{preventCustomTimeRange ? '' : 'Relative '}Time Ranges
</li>
{timeRanges.map(item => {
return (
<li className="dropdown-item" key={item.menuOption}>