diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index ba4d33c..3cb6d42 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -86,14 +86,6 @@ class AdminPanelProvider extends PanelProvider ]) // Language switcher, rendered next to the user menu. - // First render hook to fire on every page, panel and login alike: - // the one place that has to be true regardless of which screen - // somebody lands on first. - ->renderHook( - PanelsRenderHook::BODY_START, - fn (): string => view('filament.partials.environment-banner')->render(), - ) - ->renderHook( PanelsRenderHook::USER_MENU_BEFORE, fn (): string => view('filament.partials.language-switcher')->render(), diff --git a/lang/ca/panel.php b/lang/ca/panel.php index 708aa34..dece882 100644 --- a/lang/ca/panel.php +++ b/lang/ca/panel.php @@ -30,11 +30,6 @@ return [ ], ], - 'environment' => [ - 'production' => 'Producció — això és real', - 'other' => 'Entorn de :name', - ], - 'concurrency' => [ 'title' => 'No s\'ha desat', 'body' => 'Algú altre ha canviat això mentre ho editaves. Recarrega la pàgina per veure la versió actual: si ho deses ara, perdries aquest canvi.', diff --git a/lang/en/panel.php b/lang/en/panel.php index de57b47..d12fca1 100644 --- a/lang/en/panel.php +++ b/lang/en/panel.php @@ -30,11 +30,6 @@ return [ ], ], - 'environment' => [ - 'production' => 'Production — this is real', - 'other' => ':name environment', - ], - 'concurrency' => [ 'title' => 'Not saved', 'body' => 'Somebody else changed this while you were editing it. Reload the page to see the current version — saving now would overwrite that change.', diff --git a/lang/es/panel.php b/lang/es/panel.php index 10c1774..2ea16fa 100644 --- a/lang/es/panel.php +++ b/lang/es/panel.php @@ -30,11 +30,6 @@ return [ ], ], - 'environment' => [ - 'production' => 'Producción — esto es real', - 'other' => 'Entorno de :name', - ], - 'concurrency' => [ 'title' => 'No se ha guardado', 'body' => 'Alguien más ha cambiado esto mientras lo editabas. Recarga la página para ver la versión actual: si guardas ahora, perderías ese cambio.', diff --git a/resources/views/filament/partials/environment-banner.blade.php b/resources/views/filament/partials/environment-banner.blade.php deleted file mode 100644 index 4e23286..0000000 --- a/resources/views/filament/partials/environment-banner.blade.php +++ /dev/null @@ -1,22 +0,0 @@ -{{-- Rendered at the very top of every page in the panel, on every install. - - The failure this exists for runs in one direction only: mistaking a real - deployment for a throwaway copy, not the other way round. Nobody edits a - local clone carefully because they think it is production — the mistake - that costs something is the reverse. So `local` stays silent, and - anything else says so, loudly in the one case that matters. --}} - -@unless (app()->environment('local')) -