feat: dispatch browser event to refresh page after successful drive move

This commit is contained in:
2025-12-05 05:59:07 -05:00
parent ae2ab22453
commit 63129a61ae

View File

@@ -926,6 +926,9 @@ class Storage extends Component
$this->notify("Drive moved from {$this->movingDriveKey} to {$targetKey} successfully.", 'success');
$this->closeMoveDriveModal();
$this->loadStorageConfiguration(false);
// Dispatch browser event to refresh the page
$this->dispatch('refresh-page');
} catch (\Exception $e) {
$this->notify('Failed to change device bus: ' . $e->getMessage(), 'error');
}