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,14 +1935,19 @@ import 'emby-select';
}
function onMoreCommandsClick() {
const button = this;
apiClient.getCurrentUser().then(function (user) {
itemContextMenu.show(getContextMenuOptions(currentItem, user, button)).then(function (result) {
if (result.deleted) {
appRouter.goHome();
} else if (result.updated) {
reload(self, view, params);
}
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(selectedItem, user, button)).then(function (result) {
if (result.deleted) {
appRouter.goHome();
} else if (result.updated) {
reload(self, view, params);
}
});
});
});
}