fix: show activity on load
This commit is contained in:
parent
b3657dfe2b
commit
135eb7a11e
@ -2,10 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Application;
|
||||
use App\Models\Environment;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Spatie\Activitylog\Models\Activity;
|
||||
|
||||
class ProjectController extends Controller
|
||||
{
|
||||
@ -64,8 +61,10 @@ public function deployment()
|
||||
if (!$application) {
|
||||
return redirect()->route('home');
|
||||
}
|
||||
$activity = Activity::where('properties->deployment_uuid', '=', $deployment_uuid)->first();
|
||||
|
||||
return view('project.deployment', [
|
||||
'activity' => $activity,
|
||||
'deployment_uuid' => $deployment_uuid,
|
||||
]);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<x-layout>
|
||||
<h1>Deployment</h1>
|
||||
<livewire:poll-activity :activity="null" :deployment_uuid="$deployment_uuid" />
|
||||
<livewire:poll-activity :activity="$activity" :deployment_uuid="$deployment_uuid" />
|
||||
</x-layout>
|
||||
|
Loading…
Reference in New Issue
Block a user