mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 18:23:40 +00:00
fix(ui): render domain guidance below the section header
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
}"
|
||||
@open-edit-domain.window="openEditDomain($event.detail.index, $event.detail.url, $event.detail.service)"
|
||||
@edit-domain-saved.window="closeEditDomain()">
|
||||
<x-application.settings-section id="domains-section" title="Domains" :helper="$helperText">
|
||||
<x-application.settings-section id="domains-section" title="Domains">
|
||||
@can('update', $application)
|
||||
<x-slot:actions>
|
||||
<x-forms.button wire:click="checkAllDns" wire:loading.attr="disabled" wire:target="checkAllDns,checkDomainDns">
|
||||
@@ -78,6 +78,10 @@
|
||||
</x-callout>
|
||||
@endcannot
|
||||
|
||||
<p class="text-sm text-neutral-500 dark:text-fg-dim">
|
||||
{{ $helperText }}
|
||||
</p>
|
||||
|
||||
</x-application.settings-section>
|
||||
|
||||
{{-- Toolbar --}}
|
||||
|
||||
@@ -1263,6 +1263,14 @@ it('uses the compact service domains layout for compose applications', function
|
||||
->not->toContain('title="No domains for this service"');
|
||||
});
|
||||
|
||||
it('shows domain guidance in the application domains section', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/application/domains.blade.php'));
|
||||
|
||||
expect($view)
|
||||
->toContain('<p class="text-sm text-neutral-500 dark:text-fg-dim">')
|
||||
->toContain('{{ $helperText }}');
|
||||
});
|
||||
|
||||
it('does not render a last checked column in the domains table', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/application/domains.blade.php'));
|
||||
$row = file_get_contents(resource_path('views/livewire/project/application/partials/domain-row.blade.php'));
|
||||
|
||||
Reference in New Issue
Block a user