mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Controller: Make exported SQL queries copyable
This commit is contained in:
parent
ecfd767000
commit
458f278a07
1 changed files with 4 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ use ipl\Web\Control\LimitControl;
|
|||
use ipl\Web\Control\PaginationControl;
|
||||
use ipl\Web\Filter\QueryString;
|
||||
use ipl\Web\Url;
|
||||
use ipl\Web\Widget\CopyToClipboard;
|
||||
|
||||
class Controller extends CompatController
|
||||
{
|
||||
|
|
@ -356,7 +357,9 @@ class Controller extends CompatController
|
|||
$sql .= ' /* Unused values: "' . join('", "', $unused) . '" */';
|
||||
}
|
||||
|
||||
$this->content->add(Html::tag('pre', $sql));
|
||||
$pre = Html::tag('pre', $sql);
|
||||
CopyToClipboard::attachTo($pre);
|
||||
$this->content->add($pre);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue