29 lines
623 B
PHP
29 lines
623 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Ui\System\Modal;
|
|
|
|
use LivewireUI\Modal\ModalComponent;
|
|
|
|
class InstallerConfirmModal extends ModalComponent
|
|
{
|
|
public string $component = 'all';
|
|
|
|
public static function modalMaxWidth(): string { return 'sm'; }
|
|
|
|
public function mount(string $component = 'all'): void
|
|
{
|
|
$this->component = $component;
|
|
}
|
|
|
|
public function confirm(): void
|
|
{
|
|
$this->closeModal();
|
|
$this->dispatch('installer:run', component: $this->component);
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.ui.system.modal.installer-confirm-modal');
|
|
}
|
|
}
|