From ef40b79a5f98dae45106b2d0fddda9a9a1b99265 Mon Sep 17 00:00:00 2001 From: ayntk-ai <122374094+ayntk-ai@users.noreply.github.com> Date: Sun, 18 Aug 2024 20:44:15 +0200 Subject: [PATCH 1/3] fix project selection --- .../views/livewire/project/index.blade.php | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/resources/views/livewire/project/index.blade.php b/resources/views/livewire/project/index.blade.php index 92d4a63f9..88b2e12e9 100644 --- a/resources/views/livewire/project/index.blade.php +++ b/resources/views/livewire/project/index.blade.php @@ -11,9 +11,8 @@
All your projects are here.
@forelse ($projects as $project) -
-
+
+
{{ $project->name }}
{{ $project->description }}
@@ -33,15 +32,8 @@
+ function gotoProject(uuid, defaultEnvironment) { + window.location.href = '/project/' + uuid + '/' + defaultEnvironment; + } +
From abd2aefd6ca52a67ff8ca4793b1d990132743ec1 Mon Sep 17 00:00:00 2001 From: ayntk-ai <122374094+ayntk-ai@users.noreply.github.com> Date: Sun, 18 Aug 2024 20:55:54 +0200 Subject: [PATCH 2/3] remove duplicated validation --- resources/views/livewire/dashboard.blade.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index a6eb231d4..c0c5c7a6d 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -28,16 +28,16 @@
{{ $project->name }}
- {{ $project->description }}
+ {{ $project->description }} +
-
+ @@ -161,9 +161,6 @@ From c813373d211609f3db915b0e4f68a51360c70d50 Mon Sep 17 00:00:00 2001 From: ayntk-ai <122374094+ayntk-ai@users.noreply.github.com> Date: Sun, 18 Aug 2024 21:00:30 +0200 Subject: [PATCH 3/3] fix validation if null, empty or undefined --- resources/views/livewire/dashboard.blade.php | 7 ++++++- resources/views/livewire/project/index.blade.php | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/resources/views/livewire/dashboard.blade.php b/resources/views/livewire/dashboard.blade.php index c0c5c7a6d..e9cd27311 100644 --- a/resources/views/livewire/dashboard.blade.php +++ b/resources/views/livewire/dashboard.blade.php @@ -159,9 +159,14 @@
@endif + {{-- Get IPTABLES --}} diff --git a/resources/views/livewire/project/index.blade.php b/resources/views/livewire/project/index.blade.php index 88b2e12e9..a15f6e18f 100644 --- a/resources/views/livewire/project/index.blade.php +++ b/resources/views/livewire/project/index.blade.php @@ -32,8 +32,12 @@