remove duplicated validation
This commit is contained in:
@@ -28,16 +28,16 @@
|
|||||||
<div class="flex flex-col justify-center flex-1">
|
<div class="flex flex-col justify-center flex-1">
|
||||||
<div class="box-title">{{ $project->name }}</div>
|
<div class="box-title">{{ $project->name }}</div>
|
||||||
<div class="box-description">
|
<div class="box-description">
|
||||||
{{ $project->description }}</div>
|
{{ $project->description }}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center justify-center gap-2 text-xs font-bold ">
|
</div>
|
||||||
|
<div class="flex items-center justify-center gap-2 text-xs font-bold">
|
||||||
<a class="hover:underline"
|
<a class="hover:underline"
|
||||||
href="{{ route('project.resource.create', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => data_get($project, 'environments.0.name', 'production')]) }}">
|
href="{{ route('project.resource.create', ['project_uuid' => $project->uuid, 'environment_name' => $project->default_environment()]) }}">
|
||||||
<span class="p-2 font-bold">+
|
<span class="p-2 font-bold">+ Add Resource</span>
|
||||||
Add Resource</span>
|
|
||||||
</a>
|
</a>
|
||||||
<a class="hover:underline"
|
<a class="hover:underline"
|
||||||
href="{{ route('project.edit', ['project_uuid' => data_get($project, 'uuid')]) }}">
|
href="{{ route('project.edit', ['project_uuid' => $project->uuid]) }}">
|
||||||
Settings
|
Settings
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -161,9 +161,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
function gotoProject(uuid, environment) {
|
function gotoProject(uuid, environment) {
|
||||||
if (!environment) {
|
|
||||||
window.location.href = '/project/' + uuid;
|
|
||||||
}
|
|
||||||
window.location.href = '/project/' + uuid + '/' + environment;
|
window.location.href = '/project/' + uuid + '/' + environment;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Reference in New Issue
Block a user