From c5f889de4f1381d28b0482ab2c9efce5323b4dba Mon Sep 17 00:00:00 2001 From: "Buster \"Silver Eagle\" Neece" Date: Sat, 2 Jul 2022 17:08:43 -0500 Subject: [PATCH] Move "Help" back to "Logs". --- config/menus/station.php | 8 ++++---- config/routes/stations.php | 4 ++-- .../Stations/{HelpAction.php => LogsAction.php} | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/Controller/Stations/{HelpAction.php => LogsAction.php} (96%) diff --git a/config/menus/station.php b/config/menus/station.php index bbbfe3aa0..134c64866 100644 --- a/config/menus/station.php +++ b/config/menus/station.php @@ -264,10 +264,10 @@ return function (App\Event\BuildStationMenu $e) { ], ], - 'help' => [ - 'label' => __('Help'), - 'icon' => 'support', - 'url' => (string)$router->fromHere('stations:help'), + 'logs' => [ + 'label' => __('Logs'), + 'icon' => 'web_stories', + 'url' => (string)$router->fromHere('stations:logs'), 'permission' => StationPermissions::Logs, ], ] diff --git a/config/routes/stations.php b/config/routes/stations.php index f149ab29a..6c5dcecbd 100644 --- a/config/routes/stations.php +++ b/config/routes/stations.php @@ -48,8 +48,8 @@ return static function (RouteCollectorProxy $app) { ->setName('stations:stereo_tool_config') ->add(new Middleware\Permissions(StationPermissions::Broadcasting, true)); - $group->get('/help', Controller\Stations\HelpAction::class) - ->setName('stations:help') + $group->get('/logs', Controller\Stations\LogsAction::class) + ->setName('stations:logs') ->add(new Middleware\Permissions(StationPermissions::Logs, true)); $group->get('/playlists', Controller\Stations\PlaylistsAction::class) diff --git a/src/Controller/Stations/HelpAction.php b/src/Controller/Stations/LogsAction.php similarity index 96% rename from src/Controller/Stations/HelpAction.php rename to src/Controller/Stations/LogsAction.php index 43c38b1bd..59c63dedc 100644 --- a/src/Controller/Stations/HelpAction.php +++ b/src/Controller/Stations/LogsAction.php @@ -8,7 +8,7 @@ use App\Http\Response; use App\Http\ServerRequest; use Psr\Http\Message\ResponseInterface; -final class HelpAction +final class LogsAction { public function __invoke( ServerRequest $request,