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:
commit
884fd86668
1 changed files with 13 additions and 8 deletions
|
@ -1935,14 +1935,19 @@ import 'emby-select';
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMoreCommandsClick() {
|
function onMoreCommandsClick() {
|
||||||
const button = this;
|
var button = this;
|
||||||
apiClient.getCurrentUser().then(function (user) {
|
var selectedItem = currentItem;
|
||||||
itemContextMenu.show(getContextMenuOptions(currentItem, user, button)).then(function (result) {
|
apiClient.getItem(apiClient.getCurrentUserId(), view.querySelector('.selectSource').value).then(function (item) {
|
||||||
if (result.deleted) {
|
selectedItem = item;
|
||||||
appRouter.goHome();
|
|
||||||
} else if (result.updated) {
|
apiClient.getCurrentUser().then(function (user) {
|
||||||
reload(self, view, params);
|
itemContextMenu.show(getContextMenuOptions(selectedItem, user, button)).then(function (result) {
|
||||||
}
|
if (result.deleted) {
|
||||||
|
appRouter.goHome();
|
||||||
|
} else if (result.updated) {
|
||||||
|
reload(self, view, params);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue