2023-09-30 13:08:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Livewire\Project\Service;
|
|
|
|
|
|
|
|
use Livewire\Component;
|
|
|
|
|
|
|
|
class ComposeModal extends Component
|
|
|
|
{
|
2023-10-24 08:19:12 +00:00
|
|
|
public ?string $raw = null;
|
|
|
|
public ?string $actual = null;
|
2023-09-30 13:08:40 +00:00
|
|
|
public function render()
|
|
|
|
{
|
|
|
|
return view('livewire.project.service.compose-modal');
|
|
|
|
}
|
|
|
|
public function submit() {
|
|
|
|
$this->emit('warning', "Saving new docker compose...");
|
|
|
|
$this->emit('saveCompose', $this->raw);
|
|
|
|
}
|
|
|
|
}
|