fix environment select
This commit is contained in:
@@ -15,7 +15,7 @@ class EnvironmentSelect extends Component
|
|||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
$this->selectedEnvironment = request()->route('environment_name');
|
$this->selectedEnvironment = request()->route('environment_uuid');
|
||||||
$this->project_uuid = request()->route('project_uuid');
|
$this->project_uuid = request()->route('project_uuid');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ class EnvironmentSelect extends Component
|
|||||||
} else {
|
} else {
|
||||||
return redirect()->route('project.resource.index', [
|
return redirect()->route('project.resource.index', [
|
||||||
'project_uuid' => $this->project_uuid,
|
'project_uuid' => $this->project_uuid,
|
||||||
'environment_name' => $value,
|
'environment_uuid' => $value,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<x-forms.select wire:model.live="selectedEnvironment">
|
<x-forms.select wire:model.live="selectedEnvironment">
|
||||||
<option value="edit">Create / Edit</option>
|
|
||||||
<option disabled>-----</option>
|
|
||||||
@foreach ($environments as $environment)
|
@foreach ($environments as $environment)
|
||||||
<option value="{{ $environment->name }}">{{ $environment->name }}
|
<option value="{{ $environment->uuid }}">{{ $environment->name }}</option>
|
||||||
</option>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
<option disabled>-----</option>
|
||||||
|
<option value="edit">Create / Edit</option>
|
||||||
</x-forms.select>
|
</x-forms.select>
|
||||||
|
|||||||
Reference in New Issue
Block a user