From b94a50e720e257facd829995bbd17c1d848aa621 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 19 Jun 2023 11:02:01 +0200 Subject: [PATCH] fix --- app/Http/Livewire/RunCommand.php | 2 +- resources/views/livewire/run-command.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/RunCommand.php b/app/Http/Livewire/RunCommand.php index e5404a485..50462c52c 100755 --- a/app/Http/Livewire/RunCommand.php +++ b/app/Http/Livewire/RunCommand.php @@ -28,8 +28,8 @@ class RunCommand extends Component public function runCommand() { + $this->validate(); try { - $this->validate(); $activity = remote_process([$this->command], Server::where('uuid', $this->server)->first(), ignore_errors: true); $this->emit('newMonitorActivity', $activity->id); } catch (\Exception $e) { diff --git a/resources/views/livewire/run-command.blade.php b/resources/views/livewire/run-command.blade.php index d9bc3a9d9..f05b58a93 100644 --- a/resources/views/livewire/run-command.blade.php +++ b/resources/views/livewire/run-command.blade.php @@ -1,5 +1,5 @@
-
+ @foreach ($servers as $server)