feat: preselect prod or first env when selecting a project

feat: quickly switch between environments
This commit is contained in:
Andras Bacsai
2024-06-21 13:54:13 +02:00
parent f607aa1233
commit c5083ea897
5 changed files with 59 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
@forelse ($projects as $project)
<div class="box group" x-data x-on:click="goto('{{ $project->uuid }}')">
<a class="flex flex-col justify-center flex-1 mx-6"
href="{{ route('project.show', ['project_uuid' => data_get($project, 'uuid')]) }}">
href="{{ route('project.resource.index', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => $project->default_environment()->name]) }}">
<div class="box-title">{{ $project->name }}</div>
<div class="box-description ">
{{ $project->description }}</div>