Fix job dispatch and show log output
All checks were successful
Deploy App / deploy (push) Successful in 11s
All checks were successful
Deploy App / deploy (push) Successful in 11s
This commit is contained in:
@@ -27,6 +27,20 @@ class BotLogs extends Component
|
||||
}
|
||||
}
|
||||
|
||||
public function showOutput(int $logId): void
|
||||
{
|
||||
$log = BotLog::find($logId);
|
||||
if ($log) {
|
||||
$output = $log->output ?? 'No output';
|
||||
LivewireAlert::title('Output Details')
|
||||
->html("<pre class='text-left rounded p-4 bg-gray-200 whitespace-pre-wrap break-words'><code>{$output}</code</pre>")
|
||||
->info()
|
||||
->timer(null)
|
||||
->withCancelButton('Close')
|
||||
->show();
|
||||
}
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.bot-logs', [
|
||||
|
||||
Reference in New Issue
Block a user