mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Fix editMetadata/download didnt work with selected version
This commit is contained in:
parent
99686db96d
commit
fd3f1a7a22
@ -1935,9 +1935,13 @@ import 'emby-select';
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onMoreCommandsClick() {
|
function onMoreCommandsClick() {
|
||||||
const button = this;
|
var button = this;
|
||||||
|
var selectedItem = currentItem;
|
||||||
|
apiClient.getItem(apiClient.getCurrentUserId(), view.querySelector('.selectSource').value).then(function (item) {
|
||||||
|
selectedItem = item;
|
||||||
|
|
||||||
apiClient.getCurrentUser().then(function (user) {
|
apiClient.getCurrentUser().then(function (user) {
|
||||||
itemContextMenu.show(getContextMenuOptions(currentItem, user, button)).then(function (result) {
|
itemContextMenu.show(getContextMenuOptions(selectedItem, user, button)).then(function (result) {
|
||||||
if (result.deleted) {
|
if (result.deleted) {
|
||||||
appRouter.goHome();
|
appRouter.goHome();
|
||||||
} else if (result.updated) {
|
} else if (result.updated) {
|
||||||
@ -1945,6 +1949,8 @@ import 'emby-select';
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPlayerChange() {
|
function onPlayerChange() {
|
||||||
|
Loading…
Reference in New Issue
Block a user