mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Implement frontend component of max user sessions
This commit is contained in:
parent
9defa3da24
commit
355620f06b
3 changed files with 13 additions and 0 deletions
|
@ -190,6 +190,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
<div class=verticalSection>
|
||||||
|
<div class="inputContainer" id="fldMaxActiveSessions">
|
||||||
|
<input is="emby-input" type="number" id="txtMaxActiveSessions" min="-1" step="1" label="${LabelUserMaxActiveSessions}"/>
|
||||||
|
<div class="fieldDescription">${OptionMaxActiveSessions}</div>
|
||||||
|
<div class="fieldDescription">${OptionMaxActiveSessionsHelp}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<button is="emby-button" type="submit" class="raised button-submit block">
|
<button is="emby-button" type="submit" class="raised button-submit block">
|
||||||
<span>${Save}</span>
|
<span>${Save}</span>
|
||||||
|
|
|
@ -102,6 +102,7 @@ import globalize from 'globalize';
|
||||||
$('#chkEnableSharing', page).prop('checked', user.Policy.EnablePublicSharing);
|
$('#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 || '-1');
|
||||||
if (ApiClient.isMinServerVersion('10.6.0')) {
|
if (ApiClient.isMinServerVersion('10.6.0')) {
|
||||||
$('#selectSyncPlayAccess').val(user.Policy.SyncPlayAccess);
|
$('#selectSyncPlayAccess').val(user.Policy.SyncPlayAccess);
|
||||||
}
|
}
|
||||||
|
@ -138,6 +139,7 @@ import globalize from 'globalize';
|
||||||
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');
|
||||||
|
user.Policy.MaxActiveSessions = parseInt($('#txtMaxActiveSessions', page).val() || '-1');
|
||||||
user.Policy.AuthenticationProviderId = page.querySelector('.selectLoginProvider').value;
|
user.Policy.AuthenticationProviderId = page.querySelector('.selectLoginProvider').value;
|
||||||
user.Policy.PasswordResetProviderId = page.querySelector('.selectPasswordResetProvider').value;
|
user.Policy.PasswordResetProviderId = page.querySelector('.selectPasswordResetProvider').value;
|
||||||
user.Policy.EnableContentDeletion = $('#chkEnableDeleteAllFolders', page).is(':checked');
|
user.Policy.EnableContentDeletion = $('#chkEnableDeleteAllFolders', page).is(':checked');
|
||||||
|
|
|
@ -815,6 +815,7 @@
|
||||||
"LabelUserLibrary": "User library:",
|
"LabelUserLibrary": "User library:",
|
||||||
"LabelUserLibraryHelp": "Select which user library to display to the device. Leave empty to inherit the default setting.",
|
"LabelUserLibraryHelp": "Select which user library to display to the device. Leave empty to inherit the default setting.",
|
||||||
"LabelUserLoginAttemptsBeforeLockout": "Failed login attempts before user is locked out:",
|
"LabelUserLoginAttemptsBeforeLockout": "Failed login attempts before user is locked out:",
|
||||||
|
"LabelUserMaxActiveSessions": "Maximum number of simultaneous user sessions:",
|
||||||
"LabelUserRemoteClientBitrateLimitHelp": "Override the default global value set in server playback settings.",
|
"LabelUserRemoteClientBitrateLimitHelp": "Override the default global value set in server playback settings.",
|
||||||
"LabelUsername": "Username:",
|
"LabelUsername": "Username:",
|
||||||
"LabelVaapiDevice": "VA API Device:",
|
"LabelVaapiDevice": "VA API Device:",
|
||||||
|
@ -1066,6 +1067,8 @@
|
||||||
"OptionLikes": "Likes",
|
"OptionLikes": "Likes",
|
||||||
"OptionLoginAttemptsBeforeLockout": "Determines how many incorrect login attempts can be made before lockout occurs.",
|
"OptionLoginAttemptsBeforeLockout": "Determines how many incorrect login attempts can be made before lockout occurs.",
|
||||||
"OptionLoginAttemptsBeforeLockoutHelp": "A value of zero means inheriting the default of three attempts for normal users and five for administrators. Setting this to -1 will disable the feature.",
|
"OptionLoginAttemptsBeforeLockoutHelp": "A value of zero means inheriting the default of three attempts for normal users and five for administrators. Setting this to -1 will disable the feature.",
|
||||||
|
"OptionMaxActiveSessions": "Sets the maximum number of simultaneous user sessions.",
|
||||||
|
"OptionMaxActiveSessionsHelp": "A value of 0 will disable user access. A value of -1 will disable the feature.",
|
||||||
"OptionMax": "Max",
|
"OptionMax": "Max",
|
||||||
"OptionMissingEpisode": "Missing Episodes",
|
"OptionMissingEpisode": "Missing Episodes",
|
||||||
"OptionNew": "New…",
|
"OptionNew": "New…",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue