rename things

This commit is contained in:
Andras Bacsai 2023-12-07 13:28:11 +01:00
parent 1158b2f4db
commit 8cffae10b2
3 changed files with 4 additions and 4 deletions

View File

@ -1,12 +1,12 @@
<?php
namespace App\Http\Livewire\Project\Service;
namespace App\Http\Livewire\Modal;
use App\Models\Service;
use Livewire\Component;
use LivewireUI\Modal\ModalComponent;
class ComposeModal extends ModalComponent
class EditCompose extends ModalComponent
{
public Service $service;
public $serviceId;
@ -19,7 +19,7 @@ public function mount() {
}
public function render()
{
return view('livewire.project.service.compose-modal');
return view('livewire.modal.edit-compose');
}
public function submit() {
$this->emit('warning', "Saving new docker compose...");

View File

@ -6,7 +6,7 @@
</div>
<x-forms.button type="submit">Save</x-forms.button>
<x-forms.button class="w-64"
onclick="Livewire.emit('openModal', 'project.service.compose-modal',{{ json_encode(['serviceId' => $service->id]) }})">Edit
onclick="Livewire.emit('openModal', 'modals.edit-compose',{{ json_encode(['serviceId' => $service->id]) }})">Edit
Compose
File</x-forms.button>
</div>