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

improve itemContextMenu.js by adding a helper function to itemHelper.js

This commit is contained in:
chinkara 2024-02-06 09:52:14 +01:00
parent 394a548263
commit fd50b3af55
2 changed files with 29 additions and 5 deletions

View file

@ -214,11 +214,7 @@ export function getCommands(options) {
});
}
if ((canEdit || user.Policy.EnableSubtitleManagement) && item.MediaType === 'Video' && item.Type !== 'TvChannel' && item.Type !== 'Program'
&& item.LocationType !== 'Virtual'
&& !(item.Type === 'Recording' && item.Status !== 'Completed')
&& options.editSubtitles !== false
) {
if (itemHelper.canEditSubtitles(user, item) && options.editSubtitles !== false) {
commands.push({
name: globalize.translate('EditSubtitles'),
id: 'editsubtitles',