Move from Station:help to station:logs

This commit is contained in:
Mitch 2022-06-30 23:09:38 +01:00
parent 1e8b45803a
commit 3fcacabaca
4 changed files with 9 additions and 9 deletions

View File

@ -264,10 +264,10 @@ return function (App\Event\BuildStationMenu $e) {
], ],
], ],
'help' => [ 'logs' => [
'label' => __('Help'), 'label' => __('Logs'),
'icon' => 'support', 'icon' => 'support',
'url' => (string)$router->fromHere('stations:help'), 'url' => (string)$router->fromHere('stations:logs'),
'permission' => StationPermissions::Logs, 'permission' => StationPermissions::Logs,
], ],
] ]

View File

@ -48,8 +48,8 @@ return static function (RouteCollectorProxy $app) {
->setName('stations:stereo_tool_config') ->setName('stations:stereo_tool_config')
->add(new Middleware\Permissions(StationPermissions::Broadcasting, true)); ->add(new Middleware\Permissions(StationPermissions::Broadcasting, true));
$group->get('/help', Controller\Stations\HelpAction::class) $group->get('/logs', Controller\Stations\logs::class)
->setName('stations:help') ->setName('stations:logs')
->add(new Middleware\Permissions(StationPermissions::Logs, true)); ->add(new Middleware\Permissions(StationPermissions::Logs, true));
$group->get('/playlists', Controller\Stations\PlaylistsAction::class) $group->get('/playlists', Controller\Stations\PlaylistsAction::class)

View File

@ -36,7 +36,7 @@ module.exports = {
SetupStation: '~/pages/Setup/Station.js', SetupStation: '~/pages/Setup/Station.js',
StationsBulkMedia: '~/pages/Stations/BulkMedia.js', StationsBulkMedia: '~/pages/Stations/BulkMedia.js',
StationsFallback: '~/pages/Stations/Fallback.js', StationsFallback: '~/pages/Stations/Fallback.js',
StationsHelp: '~/pages/Stations/Help.js', StationsLogs: '~/pages/Stations/Logs.js',
StationsHlsStreams: '~/pages/Stations/HlsStreams.js', StationsHlsStreams: '~/pages/Stations/HlsStreams.js',
StationsLiquidsoapConfig: '~/pages/Stations/LiquidsoapConfig.js', StationsLiquidsoapConfig: '~/pages/Stations/LiquidsoapConfig.js',
StationsMedia: '~/pages/Stations/Media.js', StationsMedia: '~/pages/Stations/Media.js',

View File

@ -19,9 +19,9 @@ final class HelpAction
return $request->getView()->renderVuePage( return $request->getView()->renderVuePage(
response: $response, response: $response,
component: 'Vue_StationsHelp', component: 'Vue_StationsLogs',
id: 'stations-help', id: 'stations-logs',
title: __('Help'), title: __('Logs'),
props: [ props: [
'logsUrl' => (string)$router->fromHere('api:stations:logs'), 'logsUrl' => (string)$router->fromHere('api:stations:logs'),
], ],