We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecfd767 commit 458f278Copy full SHA for 458f278
1 file changed
library/Icingadb/Web/Controller.php
@@ -42,6 +42,7 @@
42
use ipl\Web\Control\PaginationControl;
43
use ipl\Web\Filter\QueryString;
44
use ipl\Web\Url;
45
+use ipl\Web\Widget\CopyToClipboard;
46
47
class Controller extends CompatController
48
{
@@ -356,7 +357,9 @@ public function export(Query ...$queries)
356
357
$sql .= ' /* Unused values: "' . join('", "', $unused) . '" */';
358
}
359
- $this->content->add(Html::tag('pre', $sql));
360
+ $pre = Html::tag('pre', $sql);
361
+ CopyToClipboard::attachTo($pre);
362
+ $this->content->add($pre);
363
364
365
return true;
0 commit comments