mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added ControllableByUserId to sessions url
This commit is contained in:
parent
ea87ff5300
commit
c3af03c269
1 changed files with 7 additions and 2 deletions
|
@ -1030,12 +1030,17 @@
|
|||
|
||||
var self = this;
|
||||
|
||||
var sessionQuery = {
|
||||
SupportsRemoteControl: true,
|
||||
ControllableByUserId: Dashboard.getCurrentUserId()
|
||||
};
|
||||
|
||||
self.showMenuForItem = function (options) {
|
||||
showMenuForItem(options, ApiClient.getSessions({ SupportsRemoteControl: true }));
|
||||
showMenuForItem(options, ApiClient.getSessions(sessionQuery));
|
||||
};
|
||||
|
||||
self.showMenu = function () {
|
||||
ApiClient.getSessions({ SupportsRemoteControl: true }).done(function (sessions) {
|
||||
ApiClient.getSessions(sessionQuery).done(function (sessions) {
|
||||
|
||||
showMenu(sessions);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue