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:
2026-02-23 20:02:41 -05:00
parent f394483daa
commit af62a16354
45 changed files with 393 additions and 4700 deletions

View File

@@ -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()