Refactor domain editing in service configuration view

This commit is contained in:
Andras Bacsai 2024-04-12 23:13:17 +02:00
parent d444211c68
commit 3328d20b2d

View File

@ -71,12 +71,10 @@
@endif
@if ($application->fqdn)
<span class="flex gap-1 text-xs">{{ Str::limit($application->fqdn, 60) }}
<x-modal-input wire:key="application-{{ $application->name }}"
title="Edit Domains">
<x-modal-input title="Edit Domains">
<x-slot:content>
<span class="cursor-pointer">
<svg xmlns="http://www.w3.org/2000/svg"
class="w-4 h-4 dark:text-warning text-coollabs"
<svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 dark:text-warning text-coollabs"
viewBox="0 0 24 24">
<g fill="none" stroke="currentColor"
stroke-linecap="round" stroke-linejoin="round"
@ -86,10 +84,10 @@ class="w-4 h-4 dark:text-warning text-coollabs"
<path d="M9 7.07A7 7 0 0 0 10 21a7 7 0 0 0 6.929-6" />
</g>
</svg>
</span>
</x-slot:content>
<livewire:project.service.edit-domain
wire:key="application-{{ $application->uuid }}"
applicationId="{{ $application->id }}" />
</x-modal-input>
</span>