feat: dispatch browser event to refresh page after successful drive move
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user