mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add 'externallinks' feature testing
This commit is contained in:
parent
ed964137fa
commit
a8bc8a7e74
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
import appHost from 'apphost';
|
||||
import dialogHelper from 'dialogHelper';
|
||||
import layoutManager from 'layoutManager';
|
||||
import globalize from 'globalize';
|
||||
|
@ -384,13 +385,15 @@ function showEditorInternal(itemId, serverId, template) {
|
|||
if (layoutManager.tv) {
|
||||
centerFocus(dlg.querySelector('.formDialogContent'), false, true);
|
||||
dlg.querySelector('.btnSearchSubtitles').classList.add('hide');
|
||||
|
||||
// Don't allow redirection to other websites from the TV layout
|
||||
dlg.querySelector('.btnHelp').remove();
|
||||
} else {
|
||||
btnSubmit.classList.add('hide');
|
||||
}
|
||||
|
||||
// Don't allow redirection to other websites from the TV layout
|
||||
if (layoutManager.tv || !appHost.supports('externallinks')) {
|
||||
dlg.querySelector('.btnHelp').remove();
|
||||
}
|
||||
|
||||
const editorContent = dlg.querySelector('.formDialogContent');
|
||||
|
||||
dlg.querySelector('.subtitleList').addEventListener('click', onSubtitleListClick);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue