mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-13 12:46:41 +00:00
Add link to listener report from profile.
This commit is contained in:
parent
3d43bea50d
commit
32646cf7c7
|
@ -27,6 +27,14 @@
|
||||||
{{ $gettext('Unique') }}
|
{{ $gettext('Unique') }}
|
||||||
</small>
|
</small>
|
||||||
</h6>
|
</h6>
|
||||||
|
<a
|
||||||
|
v-if="userCanManageReports"
|
||||||
|
class="flex-shrink btn btn-outline-default ml-2 px-1 py-2"
|
||||||
|
:href="listenerReportUri"
|
||||||
|
:title="$gettext('Listener Report')"
|
||||||
|
>
|
||||||
|
<icon icon="assignment" />
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<b-overlay
|
<b-overlay
|
||||||
|
|
|
@ -17,5 +17,13 @@ export default {
|
||||||
backendDisconnectStreamerUri: {
|
backendDisconnectStreamerUri: {
|
||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
|
},
|
||||||
|
userCanManageReports: {
|
||||||
|
type: Boolean,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
listenerReportUri: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,6 +108,7 @@ final class ProfileController
|
||||||
'api:stations:backend',
|
'api:stations:backend',
|
||||||
['do' => 'disconnect']
|
['do' => 'disconnect']
|
||||||
),
|
),
|
||||||
|
'listenerReportUri' => $router->fromHere('stations:reports:listeners'),
|
||||||
|
|
||||||
// Requests
|
// Requests
|
||||||
'requestsViewUri' => $router->fromHere('stations:reports:requests'),
|
'requestsViewUri' => $router->fromHere('stations:reports:requests'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user