1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #1814 from danieladov/master

Fix download/edit metadata of specific version
This commit is contained in:
dkanada 2020-08-22 07:47:07 +09:00 committed by GitHub
commit 884fd86668
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,7 @@ import 'emby-select';
} }
}); });
}); });
});
} }
function onPlayerChange() { function onPlayerChange() {