mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-08 10:39:27 +01:00
update translation when importing plugin
This commit is contained in:
parent
91f88daaa3
commit
244f77559e
@ -220,14 +220,14 @@ class PluginResource extends Resource
|
||||
|
||||
Notification::make()
|
||||
->success()
|
||||
->title(trans('admin/plugin.notifications.downloaded'))
|
||||
->title(trans('admin/plugin.notifications.imported'))
|
||||
->send();
|
||||
} catch (Exception $exception) {
|
||||
report($exception);
|
||||
|
||||
Notification::make()
|
||||
->danger()
|
||||
->title(trans('admin/plugin.notifications.download_failed'))
|
||||
->title(trans('admin/plugin.notifications.import_failed'))
|
||||
->body($exception->getMessage())
|
||||
->send();
|
||||
}
|
||||
|
||||
@ -49,7 +49,7 @@ return [
|
||||
'updated' => 'Plugin updated',
|
||||
'enabled' => 'Plugin enabled',
|
||||
'disabled' => 'Plugin disabled',
|
||||
'downloaded' => 'Plugin downloaded',
|
||||
'download_failed' => 'Could not download plugin',
|
||||
'imported' => 'Plugin imported',
|
||||
'import_failed' => 'Could not import plugin',
|
||||
],
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user