mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 16:44:44 +02:00
Fix Single Egg Import
This commit is contained in:
parent
1fba700096
commit
3158bdfef8
@ -270,16 +270,14 @@ class EditEgg extends EditRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Import Failed')
|
->title('Import Failed')
|
||||||
->body($exception->getMessage())
|
->body($exception->getMessage())
|
||||||
->danger()
|
->danger() // Will Robinson
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
report($exception);
|
report($exception);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
} elseif (!empty($data['url'])) {
|
||||||
|
|
||||||
if (!empty($data['url'])) {
|
|
||||||
try {
|
try {
|
||||||
$eggImportService->fromUrl($data['url'], $egg);
|
$eggImportService->fromUrl($data['url'], $egg);
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user