From 32e4ef9f5831901001046434be719d56cbe9a8a4 Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 6 Sep 2026 13:38:13 +0200 Subject: [PATCH] wip --- app/Livewire/BoardDispatcher.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Livewire/BoardDispatcher.php b/app/Livewire/BoardDispatcher.php index d456c4c1..4d0201f8 100644 --- a/app/Livewire/BoardDispatcher.php +++ b/app/Livewire/BoardDispatcher.php @@ -78,11 +78,11 @@ class BoardDispatcher extends Component public function copyResult() { - $copystring = `Line One\nLine Two\nLine Three`; - // foreach ($this->results as $row) { - // $copystring .= "`" . implode("\t", $row) . "\n`"; - // } - $this->js("navigator.clipboard.writeText(`Line One\nLine Two\nLine Three`)"); + $copystring = ''; + foreach ($this->results as $row) { + $copystring .= implode("\t", $row) . "\n"; + } + $this->js("navigator.clipboard.writeText(`$copystring`)"); }