mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Context menu option parity between miniplayer and fullscreen player
This commit is contained in:
parent
08a995fe2c
commit
b4d4b4fab9
1 changed files with 8 additions and 6 deletions
|
@ -195,12 +195,14 @@ define(['browser', 'datetime', 'backdrop', 'libraryBrowser', 'listView', 'imageL
|
||||||
positionTo: contextButton
|
positionTo: contextButton
|
||||||
};
|
};
|
||||||
var apiClient = connectionManager.getApiClient(item.ServerId);
|
var apiClient = connectionManager.getApiClient(item.ServerId);
|
||||||
apiClient.getCurrentUser().then(function (user) {
|
apiClient.getItem(apiClient.getCurrentUserId(), item.Id).then(function (fullItem) {
|
||||||
contextButton.addEventListener('click', function () {
|
apiClient.getCurrentUser().then(function (user) {
|
||||||
itemContextMenu.show(Object.assign({
|
contextButton.addEventListener('click', function () {
|
||||||
item: item,
|
itemContextMenu.show(Object.assign({
|
||||||
user: user
|
item: fullItem,
|
||||||
}, options));
|
user: user
|
||||||
|
}, options));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
setImageUrl(context, state, url);
|
setImageUrl(context, state, url);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue