mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-05-28 04:34:57 -04:00
Time range picker: remove clear link
This commit is contained in:
parent
a53216aba5
commit
bb1b0c9c25
1 changed files with 0 additions and 13 deletions
|
|
@ -45,19 +45,6 @@ trait TimeRangePickerTrait
|
|||
{
|
||||
$result = $this->getTimeRangePickerCommonForm();
|
||||
$url = Url::fromRequest();
|
||||
$relevantParams = TimeRangePicker::getAllRangeParameters();
|
||||
|
||||
foreach ($relevantParams as $param) {
|
||||
if ($url->hasParam($param)) {
|
||||
$result .= $view->qlink(
|
||||
$view->translate('Clear', 'TimeRangePicker'),
|
||||
$url->without($relevantParams),
|
||||
null,
|
||||
['class' => 'button-link']
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($url->hasParam(TimeRangePicker::getRangeCustomizationParameter())) {
|
||||
$result .= $this->getTimeRangePickerCustomForm();
|
||||
|
|
|
|||
Loading…
Reference in a new issue