mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 12:39:30 +01:00
rabbit suggestions
This commit is contained in:
parent
de8f2cc0bb
commit
4483ccbdcd
@ -650,7 +650,7 @@ class EditNode extends EditRecord
|
|||||||
try {
|
try {
|
||||||
$response = $this->daemonSystemRepository->setNode($node)->getDiagnostics($logLines, $includeEndpoints, $includeLogs);
|
$response = $this->daemonSystemRepository->setNode($node)->getDiagnostics($logLines, $includeEndpoints, $includeLogs);
|
||||||
|
|
||||||
if (str_contains($response->body(), '404')) {
|
if ($response->status() === 404) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title(trans('admin/node.diagnostics.404'))
|
->title(trans('admin/node.diagnostics.404'))
|
||||||
->warning()
|
->warning()
|
||||||
@ -724,7 +724,7 @@ class EditNode extends EditRecord
|
|||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title(trans('admin/node.actions.upload_failed'))
|
->title(trans('admin/node.diagnostics.upload_failed'))
|
||||||
->body($e->getMessage())
|
->body($e->getMessage())
|
||||||
->danger()
|
->danger()
|
||||||
->send();
|
->send();
|
||||||
|
|||||||
@ -123,12 +123,12 @@ return [
|
|||||||
'include_endpoints' => 'Include Endpoints',
|
'include_endpoints' => 'Include Endpoints',
|
||||||
'include_endpoints_hint' => 'Including endpoints will show panel urls within the logs and NOT obscure them.',
|
'include_endpoints_hint' => 'Including endpoints will show panel urls within the logs and NOT obscure them.',
|
||||||
'include_logs' => 'Include Logs',
|
'include_logs' => 'Include Logs',
|
||||||
'include_logs_hint' => 'Including logs will show recent wing logs and help track down possible issues.',
|
'include_logs_hint' => 'Including logs will show recent logs and help track down possible issues.',
|
||||||
'run_diagnostics' => 'Run Diagnostics',
|
'run_diagnostics' => 'Run Diagnostics',
|
||||||
'upload_to_pelican' => 'Upload Logs',
|
'upload_to_pelican' => 'Upload Logs',
|
||||||
'logs_pulled' => 'Logs Pulled!',
|
'logs_pulled' => 'Logs Pulled!',
|
||||||
'logs_uploaded' => 'Logs Uploaded',
|
'logs_uploaded' => 'Logs Uploaded',
|
||||||
'upload_failed' => 'Log Upload Failed',
|
'upload_failed' => 'Logs Upload Failed',
|
||||||
'view_logs' => 'View Logs',
|
'view_logs' => 'View Logs',
|
||||||
'pull' => 'Pull',
|
'pull' => 'Pull',
|
||||||
'upload' => 'Upload',
|
'upload' => 'Upload',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user