Fix editMetadata/download didnt work with selected version

This commit is contained in:
Mister Rajoy 2020-08-18 01:45:43 +02:00
parent 99686db96d
commit fd3f1a7a22

View File

@ -1935,9 +1935,13 @@ import 'emby-select';
}
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) {
itemContextMenu.show(getContextMenuOptions(currentItem, user, button)).then(function (result) {
itemContextMenu.show(getContextMenuOptions(selectedItem, user, button)).then(function (result) {
if (result.deleted) {
appRouter.goHome();
} else if (result.updated) {
@ -1945,6 +1949,8 @@ import 'emby-select';
}
});
});
})
}
function onPlayerChange() {