mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 10:54:46 +02:00
More adjustments
This commit is contained in:
parent
090b2e6f1b
commit
e50e3509bd
@ -38,21 +38,21 @@ class ListEggs extends ListRecords
|
|||||||
$newEgg = $eggImportService->handle($eggFile);
|
$newEgg = $eggImportService->handle($eggFile);
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Imported egg successfully: {$exception->getMessage()}")
|
->title('Egg Import Failed')
|
||||||
->success()
|
->danger()
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
|
report($exception);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Imported egg successfully: $newEgg->name")
|
->title("Egg Import Success: $newEgg->name")
|
||||||
->success()
|
->success()
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
redirect()->route('filament.admin.resources.eggs.edit', [$newEgg]);
|
redirect()->route('filament.admin.resources.eggs.edit', [$newEgg]);
|
||||||
|
|
||||||
// $livewire->redirect(route('filament.admin.resources.eggs.edit', [$newEgg]));
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user