Fixes #3482 -- Show some reports on remote-only stations.
This commit is contained in:
parent
a418f5c130
commit
6c3931198b
|
@ -122,7 +122,6 @@ return function (App\Event\BuildStationMenu $e) {
|
|||
'reports_listeners' => [
|
||||
'label' => __('Listeners'),
|
||||
'url' => (string)$router->fromHere('stations:reports:listeners'),
|
||||
'visible' => $frontend->supportsListenerDetail(),
|
||||
],
|
||||
'reports_requests' => [
|
||||
'label' => __('Song Requests'),
|
||||
|
@ -151,7 +150,6 @@ return function (App\Event\BuildStationMenu $e) {
|
|||
'reports_soundexchange' => [
|
||||
'label' => __('SoundExchange Royalties'),
|
||||
'url' => (string)$router->fromHere('stations:reports:soundexchange'),
|
||||
'visible' => $frontend->supportsListenerDetail(),
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
|
@ -48,14 +48,6 @@ abstract class AbstractFrontend extends AbstractAdapter
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool Whether the station supports enhanced listener detail (per-client records)
|
||||
*/
|
||||
public function supportsListenerDetail(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the default mounts when resetting or initializing a station.
|
||||
*
|
||||
|
|
|
@ -25,11 +25,6 @@ class Icecast extends AbstractFrontend
|
|||
return true;
|
||||
}
|
||||
|
||||
public function supportsListenerDetail(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getNowPlaying(Entity\Station $station, bool $includeClients = true): Result
|
||||
{
|
||||
$feConfig = $station->getFrontendConfig();
|
||||
|
|
|
@ -17,11 +17,6 @@ class SHOUTcast extends AbstractFrontend
|
|||
return true;
|
||||
}
|
||||
|
||||
public function supportsListenerDetail(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getVersion(): ?string
|
||||
{
|
||||
$binary_path = $this->getBinary();
|
||||
|
|
Loading…
Reference in New Issue