mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-15 21:48:08 +03:00
Listen for install completed event (#2345)
This commit is contained in:
@@ -36,6 +36,7 @@ class AlertBannerContainer extends Component
|
||||
}
|
||||
}
|
||||
|
||||
#[On('removeAlertBanner')]
|
||||
public function remove(string $id): void
|
||||
{
|
||||
if ($this->alertBanners->has($id)) {
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user