refactor(activity-monitor): change activity property visibility and update view references for consistency
This commit is contained in:
@@ -20,7 +20,7 @@ class ActivityMonitor extends Component
|
||||
|
||||
public bool $showWaiting = false;
|
||||
|
||||
protected $activity;
|
||||
public $activity;
|
||||
|
||||
public static $eventDispatched = false;
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@php use App\Actions\CoolifyTask\RunRemoteProcess; @endphp
|
||||
<div>
|
||||
@if ($this->activity)
|
||||
<div class="h-full">
|
||||
@if ($activity)
|
||||
@if (isset($header))
|
||||
<div class="flex gap-2 pb-2">
|
||||
<h3>{{ $header }}</h3>
|
||||
@@ -11,10 +11,10 @@
|
||||
@endif
|
||||
<div @class([
|
||||
'flex flex-col-reverse w-full px-4 py-2 overflow-y-auto bg-white border border-solid rounded-sm dark:text-white dark:bg-coolgray-100 scrollbar border-neutral-300 dark:border-coolgray-300',
|
||||
'max-h-[48rem]' => $fullHeight,
|
||||
'h-full' => $fullHeight,
|
||||
'max-h-96' => !$fullHeight,
|
||||
])>
|
||||
<pre class="font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.1000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($this->activity) }}</pre>
|
||||
<pre class="font-mono whitespace-pre-wrap" @if ($isPollingActive) wire:poll.1000ms="polling" @endif>{{ RunRemoteProcess::decodeOutput($activity) }}</pre>
|
||||
</div>
|
||||
@else
|
||||
@if ($showWaiting)
|
||||
|
Reference in New Issue
Block a user