Add link to listener report from profile.

This commit is contained in:
Buster Neece 2023-01-13 16:27:44 -06:00
parent 3d43bea50d
commit 32646cf7c7
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
3 changed files with 17 additions and 0 deletions

View File

@ -27,6 +27,14 @@
{{ $gettext('Unique') }}
</small>
</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>
<b-overlay

View File

@ -17,5 +17,13 @@ export default {
backendDisconnectStreamerUri: {
type: String,
required: true
},
userCanManageReports: {
type: Boolean,
required: true,
},
listenerReportUri: {
type: String,
required: true
}
}

View File

@ -108,6 +108,7 @@ final class ProfileController
'api:stations:backend',
['do' => 'disconnect']
),
'listenerReportUri' => $router->fromHere('stations:reports:listeners'),
// Requests
'requestsViewUri' => $router->fromHere('stations:reports:requests'),