Refactor modal close behavior and improve styling
- Changed modal close event from `@click.away` to `@click.self` for better control over closing modals. - Updated various modal button styles for consistency and improved accessibility. - Adjusted transition durations for modal animations to enhance user experience. - Added aria-labels to close buttons for better screen reader support.
This commit is contained in:
@@ -57,12 +57,19 @@ class Reinstall extends Component
|
||||
$this->server->os_id = $this->os;
|
||||
$this->server->save();
|
||||
|
||||
$proxmox = new Proxmox;
|
||||
$proxmox->reinstall($this->server);
|
||||
try {
|
||||
$proxmox = new Proxmox;
|
||||
$proxmox->reinstall($this->server);
|
||||
} catch (\Throwable $e) {
|
||||
$this->notify('Reinstall failed: ' . $e->getMessage(), 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
sleep(10);
|
||||
|
||||
$this->redirect(route('proxmox.index'), true);
|
||||
// Use full page reload (navigate: false) so lazy-loaded server cards
|
||||
// properly initialise after the Livewire SPA navigation.
|
||||
$this->redirect(route('proxmox.index'));
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
||||
Reference in New Issue
Block a user