mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update subtitle editor
This commit is contained in:
parent
ea83927812
commit
7ea4d0b4c9
3 changed files with 56 additions and 29 deletions
|
@ -675,7 +675,12 @@
|
|||
}
|
||||
|
||||
if (user.Policy.IsAdministrator) {
|
||||
|
||||
commands.push('edit');
|
||||
|
||||
if (item.MediaType == 'Video' && item.Type != 'TvChannel' && item.Type != 'Program') {
|
||||
commands.push('managesubtitles');
|
||||
}
|
||||
}
|
||||
|
||||
commands.push('refresh');
|
||||
|
@ -692,10 +697,6 @@
|
|||
commands.push('share');
|
||||
}
|
||||
|
||||
if (item.MediaType == 'Video' && item.Type != 'TvChannel' && item.Type != 'Program') {
|
||||
commands.push('managesubtitles');
|
||||
}
|
||||
|
||||
return commands;
|
||||
},
|
||||
|
||||
|
@ -736,7 +737,7 @@
|
|||
|
||||
editSubtitles: function (itemId) {
|
||||
|
||||
require(['subtitleeditor/edititemsubtitles'], function () {
|
||||
require(['subtitleeditor/subtitleeditor'], function () {
|
||||
|
||||
SubtitleEditor.show(itemId);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue