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

remove broken features from user settings

This commit is contained in:
dkanada 2020-10-28 14:27:19 +09:00
parent f716315056
commit 329a6feafc
6 changed files with 15 additions and 35 deletions

View file

@ -140,32 +140,13 @@
</div> </div>
<div class="fieldDescription">${OptionAllowRemoteSharedDevicesHelp}</div> <div class="fieldDescription">${OptionAllowRemoteSharedDevicesHelp}</div>
</div> </div>
<div class="verticalSection"> <h2 class="checkboxListLabel">${Other}</h2>
<h2 class="checkboxListLabel">${HeaderDownloadSync}</h2> <div class="checkboxContainer checkboxContainer-withDescription">
<div class="checkboxList paperList" style="padding:.5em 1em;">
<label> <label>
<input type="checkbox" is="emby-checkbox" id="chkEnableDownloading" /> <input type="checkbox" is="emby-checkbox" id="chkEnableDownloading" />
<span>${OptionAllowContentDownloading}</span> <span>${OptionAllowContentDownload}</span>
</label> </label>
<label> <div class="fieldDescription checkboxFieldDescription">${OptionAllowContentDownloadHelp}</div>
<input type="checkbox" is="emby-checkbox" id="chkEnableSyncTranscoding" />
<span>${OptionAllowSyncTranscoding}</span>
</label>
</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" id="chkEnableConversion" />
<span>${AllowMediaConversion}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${AllowMediaConversionHelp}</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" id="chkEnableSharing" />
<span>${OptionAllowLinkSharing}</span>
</label>
<div class="fieldDescription checkboxFieldDescription sharingHelp"></div>
</div> </div>
<div class="checkboxContainer checkboxContainer-withDescription" id="fldIsEnabled"> <div class="checkboxContainer checkboxContainer-withDescription" id="fldIsEnabled">
<label> <label>

View file

@ -97,9 +97,6 @@ import globalize from 'globalize';
$('#chkEnableVideoPlaybackRemuxing', page).prop('checked', user.Policy.EnablePlaybackRemuxing); $('#chkEnableVideoPlaybackRemuxing', page).prop('checked', user.Policy.EnablePlaybackRemuxing);
$('#chkForceRemoteSourceTranscoding', page).prop('checked', user.Policy.ForceRemoteSourceTranscoding); $('#chkForceRemoteSourceTranscoding', page).prop('checked', user.Policy.ForceRemoteSourceTranscoding);
$('#chkRemoteAccess', page).prop('checked', user.Policy.EnableRemoteAccess == null || user.Policy.EnableRemoteAccess); $('#chkRemoteAccess', page).prop('checked', user.Policy.EnableRemoteAccess == null || user.Policy.EnableRemoteAccess);
$('#chkEnableSyncTranscoding', page).prop('checked', user.Policy.EnableSyncTranscoding);
$('#chkEnableConversion', page).prop('checked', user.Policy.EnableMediaConversion || false);
$('#chkEnableSharing', page).prop('checked', user.Policy.EnablePublicSharing);
$('#txtRemoteClientBitrateLimit', page).val(user.Policy.RemoteClientBitrateLimit / 1e6 || ''); $('#txtRemoteClientBitrateLimit', page).val(user.Policy.RemoteClientBitrateLimit / 1e6 || '');
$('#txtLoginAttemptsBeforeLockout', page).val(user.Policy.LoginAttemptsBeforeLockout || '0'); $('#txtLoginAttemptsBeforeLockout', page).val(user.Policy.LoginAttemptsBeforeLockout || '0');
$('#txtMaxActiveSessions', page).val(user.Policy.MaxActiveSessions || '0'); $('#txtMaxActiveSessions', page).val(user.Policy.MaxActiveSessions || '0');
@ -133,9 +130,6 @@ import globalize from 'globalize';
user.Policy.EnablePlaybackRemuxing = $('#chkEnableVideoPlaybackRemuxing', page).is(':checked'); user.Policy.EnablePlaybackRemuxing = $('#chkEnableVideoPlaybackRemuxing', page).is(':checked');
user.Policy.ForceRemoteSourceTranscoding = $('#chkForceRemoteSourceTranscoding', page).is(':checked'); user.Policy.ForceRemoteSourceTranscoding = $('#chkForceRemoteSourceTranscoding', page).is(':checked');
user.Policy.EnableContentDownloading = $('#chkEnableDownloading', page).is(':checked'); user.Policy.EnableContentDownloading = $('#chkEnableDownloading', page).is(':checked');
user.Policy.EnableSyncTranscoding = $('#chkEnableSyncTranscoding', page).is(':checked');
user.Policy.EnableMediaConversion = $('#chkEnableConversion', page).is(':checked');
user.Policy.EnablePublicSharing = $('#chkEnableSharing', page).is(':checked');
user.Policy.EnableRemoteAccess = $('#chkRemoteAccess', page).is(':checked'); user.Policy.EnableRemoteAccess = $('#chkRemoteAccess', page).is(':checked');
user.Policy.RemoteClientBitrateLimit = parseInt(1e6 * parseFloat($('#txtRemoteClientBitrateLimit', page).val() || '0')); user.Policy.RemoteClientBitrateLimit = parseInt(1e6 * parseFloat($('#txtRemoteClientBitrateLimit', page).val() || '0'));
user.Policy.LoginAttemptsBeforeLockout = parseInt($('#txtLoginAttemptsBeforeLockout', page).val() || '0'); user.Policy.LoginAttemptsBeforeLockout = parseInt($('#txtLoginAttemptsBeforeLockout', page).val() || '0');

View file

@ -51,7 +51,9 @@ import globalize from 'globalize';
$('.channelAccessContainer', page).hide(); $('.channelAccessContainer', page).hide();
} }
$('#chkEnableAllChannels', page).prop('checked', user.Policy.EnableAllChannels); const chkEnableAllChannels = page.querySelector('#chkEnableAllChannels');
chkEnableAllChannels.checked = user.Policy.EnableAllChannels;
triggerChange(chkEnableAllChannels);
} }
function loadDevices(page, user, devices) { function loadDevices(page, user, devices) {
@ -67,7 +69,9 @@ import globalize from 'globalize';
html += '</div>'; html += '</div>';
$('.deviceAccess', page).show().html(html); $('.deviceAccess', page).show().html(html);
$('#chkEnableAllDevices', page).prop('checked', user.Policy.EnableAllDevices); const chkEnableAllDevices = page.querySelector('#chkEnableAllDevices');
chkEnableAllDevices.checked = user.Policy.EnableAllDevices;
triggerChange(chkEnableAllDevices);
if (user.Policy.IsAdministrator) { if (user.Policy.IsAdministrator) {
page.querySelector('.deviceAccessContainer').classList.add('hide'); page.querySelector('.deviceAccessContainer').classList.add('hide');

View file

@ -1235,7 +1235,7 @@
"SelectAdminUsername": "Please select a username for the admin account.", "SelectAdminUsername": "Please select a username for the admin account.",
"ButtonSplit": "Split", "ButtonSplit": "Split",
"HeaderNavigation": "Navigation", "HeaderNavigation": "Navigation",
"OptionForceRemoteSourceTranscoding": "Force transcoding of remote media sources (like LiveTV)", "OptionForceRemoteSourceTranscoding": "Force transcoding of remote media sources such as Live TV",
"MessageConfirmAppExit": "Do you want to exit?", "MessageConfirmAppExit": "Do you want to exit?",
"LabelVideoResolution": "Video resolution:", "LabelVideoResolution": "Video resolution:",
"LabelStreamType": "Stream type:", "LabelStreamType": "Stream type:",

View file

@ -1004,10 +1004,11 @@
"OptionAdminUsers": "Administrators", "OptionAdminUsers": "Administrators",
"OptionAllUsers": "All users", "OptionAllUsers": "All users",
"OptionAllowAudioPlaybackTranscoding": "Allow audio playback that requires transcoding", "OptionAllowAudioPlaybackTranscoding": "Allow audio playback that requires transcoding",
"OptionForceRemoteSourceTranscoding": "Force transcoding of remote media sources (like LiveTV)", "OptionForceRemoteSourceTranscoding": "Force transcoding of remote media sources such as Live TV",
"OptionAllowBrowsingLiveTv": "Allow Live TV access", "OptionAllowBrowsingLiveTv": "Allow Live TV access",
"OptionAllowContentDownloading": "Allow media downloading and syncing", "OptionAllowContentDownload": "Allow media downloads",
"OptionAllowLinkSharing": "Allow social media sharing", "OptionAllowLinkSharing": "Allow social media sharing",
"OptionAllowContentDownloadHelp": "Users can download media and store it on their devices. This is not the same as a sync feature. Book libraries require this enabled to function properly.",
"OptionAllowLinkSharingHelp": "Only web pages containing media information are shared. Media files are never shared publicly. Shares are time-limited and will expire after {0} days.", "OptionAllowLinkSharingHelp": "Only web pages containing media information are shared. Media files are never shared publicly. Shares are time-limited and will expire after {0} days.",
"OptionAllowManageLiveTv": "Allow Live TV recording management", "OptionAllowManageLiveTv": "Allow Live TV recording management",
"OptionAllowMediaPlayback": "Allow media playback", "OptionAllowMediaPlayback": "Allow media playback",

View file

@ -832,7 +832,7 @@
"OptionAdminUsers": "Administrators", "OptionAdminUsers": "Administrators",
"OptionAllUsers": "All users", "OptionAllUsers": "All users",
"OptionAllowAudioPlaybackTranscoding": "Allow audio playback that requires transcoding", "OptionAllowAudioPlaybackTranscoding": "Allow audio playback that requires transcoding",
"OptionForceRemoteSourceTranscoding": "Force transcoding of remote media sources (like LiveTV)", "OptionForceRemoteSourceTranscoding": "Force transcoding of remote media sources such as Live TV",
"OptionAllowBrowsingLiveTv": "Allow Live TV access", "OptionAllowBrowsingLiveTv": "Allow Live TV access",
"OptionAllowContentDownloading": "Allow media downloading and syncing", "OptionAllowContentDownloading": "Allow media downloading and syncing",
"OptionAllowLinkSharing": "Allow social media sharing", "OptionAllowLinkSharing": "Allow social media sharing",