diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.php
index 0e1a4c47e..34283cd47 100644
--- a/app/Livewire/Project/Application/General.php
+++ b/app/Livewire/Project/Application/General.php
@@ -55,10 +55,6 @@ class General extends Component
public ?string $customNetworkAliases = null;
- public ?string $currentInternalHostname = null;
-
- public bool $currentInternalHostnameLoaded = false;
-
public ?string $dockerfile = null;
public ?string $dockerfileLocation = null;
@@ -452,32 +448,6 @@ class General extends Component
}
}
- public function loadCurrentInternalHostname(): void
- {
- if ($this->application->build_pack === 'dockercompose') {
- $this->currentInternalHostnameLoaded = true;
-
- return;
- }
-
- try {
- $containers = getCurrentApplicationContainerStatus(
- $this->application->destination->server,
- $this->application->id,
- 0
- );
- $currentContainer = $containers->first(
- fn ($container) => data_get($container, 'State') === 'running'
- ) ?? $containers->first();
-
- $this->currentInternalHostname = data_get($currentContainer, 'Names');
- } catch (\Throwable) {
- $this->currentInternalHostname = null;
- } finally {
- $this->currentInternalHostnameLoaded = true;
- }
- }
-
public function setSiteType(): void
{
$this->isStatic = $this->siteType !== 'dynamic';
diff --git a/app/Livewire/Project/Application/InternalAccess.php b/app/Livewire/Project/Application/InternalAccess.php
new file mode 100644
index 000000000..827cafd25
--- /dev/null
+++ b/app/Livewire/Project/Application/InternalAccess.php
@@ -0,0 +1,41 @@
+application->destination->server,
+ $this->application->id,
+ 0
+ );
+ $currentContainer = $containers->first(
+ fn ($container) => data_get($container, 'State') === 'running'
+ ) ?? $containers->first();
+
+ $this->currentInternalHostname = data_get($currentContainer, 'Names');
+ } catch (\Throwable) {
+ $this->currentInternalHostname = null;
+ } finally {
+ $this->currentInternalHostnameLoaded = true;
+ }
+ }
+
+ public function render(): View
+ {
+ return view('livewire.project.application.internal-access');
+ }
+}
diff --git a/app/Livewire/Project/Application/Status.php b/app/Livewire/Project/Application/Status.php
new file mode 100644
index 000000000..ec17b8679
--- /dev/null
+++ b/app/Livewire/Project/Application/Status.php
@@ -0,0 +1,31 @@
+user()->currentTeam()->id;
+
+ return [
+ "echo-private:team.{$teamId},ServiceStatusChanged" => 'refreshStatus',
+ ];
+ }
+
+ public function refreshStatus(): void
+ {
+ $this->application->refresh();
+ }
+
+ public function render(): View
+ {
+ return view('livewire.project.application.status');
+ }
+}
diff --git a/resources/views/components/application/configuration-sidebar.blade.php b/resources/views/components/application/configuration-sidebar.blade.php
index b480a69ea..fe70c8cdb 100644
--- a/resources/views/components/application/configuration-sidebar.blade.php
+++ b/resources/views/components/application/configuration-sidebar.blade.php
@@ -175,8 +175,7 @@
$pageSections = [
'project.application.configuration' => array_values(array_filter([
['id' => 'application-details-section', 'label' => 'Application details'],
- ['id' => 'public-access-section', 'label' => 'Public access'],
- $isComposeApp ? null : ['id' => 'internal-access-section', 'label' => 'Internal access'],
+ ['id' => 'access-section', 'label' => 'Access'],
['id' => 'build-pipeline-section', 'label' => 'Build pipeline'],
$isComposeApp ? null : ['id' => 'container-image-section', 'label' => 'Container image'],
$isComposeApp ? null : ['id' => 'networking-section', 'label' => 'Networking'],
diff --git a/resources/views/components/popup-small.blade.php b/resources/views/components/popup-small.blade.php
index 78e6e468e..3dc031eab 100644
--- a/resources/views/components/popup-small.blade.php
+++ b/resources/views/components/popup-small.blade.php
@@ -6,7 +6,6 @@
'compactStoragePrefix' => null,
])
-
No results found
- Try different keywords, or type new to create a resource.
- No results found
+ Try different keywords, or type new to create a resource.
+ Public access
@php
$domainCount = 0;
if ($buildPack === 'dockercompose') {
@@ -54,15 +58,6 @@
@else
{{ $domainCount }} domains set.
@endif
- Manage domains, DNS checks, and www redirects
-
- on the Domains page
- .
- Internal hostnames are only reachable by resources connected to this Docker network. -
- -+ Internal hostnames are only reachable by resources connected to this Docker network. +
+ +