Listen for install completed event (#2345)

This commit is contained in:
Charles
2026-05-20 03:36:52 -04:00
committed by GitHub
parent 8f7dbe5e16
commit dcba4a91d0
2 changed files with 6 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ class AlertBannerContainer extends Component
}
}
#[On('removeAlertBanner')]
public function remove(string $id): void
{
if ($this->alertBanners->has($id)) {

View File

@@ -144,12 +144,16 @@
case 'install output':
handleConsoleOutput(args[0]);
break;
case 'install completed':
$wire.dispatch('refresh-sidebar');
$wire.dispatch('refresh-topbar');
$wire.dispatch('removeAlertBanner', { id: 'server_conflict' });
break;
case 'feature match':
Livewire.dispatch('mount-feature', { data: args[0] });
break;
case 'status':
handlePowerChangeEvent(args[0]);
$wire.dispatch('console-status', { state: args[0] });
break;
case 'transfer status':