fix(ui): render domain guidance below the section header
This commit is contained in:
parent
24c32c3c39
commit
2c6208c8ce
2 changed files with 13 additions and 1 deletions
|
|
@ -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 @@
|
|||
->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'));
|
||||
|
|
|
|||
Loading…
Reference in a new issue