mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support opening remote control menu from dashboard
This commit is contained in:
parent
6e4a7594fc
commit
80df2d3d84
3 changed files with 26 additions and 12 deletions
|
@ -85,6 +85,8 @@
|
|||
var table = $('.tblConnections', page);
|
||||
|
||||
$('.trSession', table).addClass('deadSession');
|
||||
|
||||
var deviceId = ApiClient.deviceId();
|
||||
|
||||
for (var i = 0, length = dashboardInfo.ActiveConnections.length; i < length; i++) {
|
||||
|
||||
|
@ -106,7 +108,16 @@
|
|||
html += '</td>';
|
||||
|
||||
html += '<td>';
|
||||
html += '<div>' + connection.Client + '</div>';
|
||||
|
||||
html += '<div>';
|
||||
|
||||
if (deviceId == connection.DeviceId) {
|
||||
html += connection.Client;
|
||||
} else {
|
||||
html += '<a href="#" onclick="RemoteControl.showMenu({sessionId:\'' + connection.Id + '\'});">' + connection.Client + '</a>';
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
html += '<div>' + connection.ApplicationVersion + '</div>';
|
||||
html += '<div>' + connection.DeviceName + '</div>';
|
||||
html += '</td>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue