mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update connect
This commit is contained in:
parent
2696d8eb73
commit
0910dce389
7 changed files with 97 additions and 46 deletions
|
@ -8,16 +8,22 @@
|
|||
|
||||
Dashboard.setPageTitle(user.Name);
|
||||
|
||||
if (user.HasConfiguredPassword) {
|
||||
if (user.ConnectLinkType == 'Guest') {
|
||||
$('.localAccessSection', page).show().collapsible("option", "collapsed", false);
|
||||
$('.passwordSection', page).hide();
|
||||
}
|
||||
else if (user.HasConfiguredPassword) {
|
||||
$('#btnResetPassword', page).show();
|
||||
$('#fldCurrentPassword', page).show();
|
||||
$('.formheader', page).hide();
|
||||
$('.localAccessSection', page).show();
|
||||
$('.passwordSection', page).show();
|
||||
} else {
|
||||
$('#btnResetPassword', page).hide();
|
||||
$('#fldCurrentPassword', page).hide();
|
||||
$('.formheader', page).show();
|
||||
$('.localAccessSection', page).hide();
|
||||
$('.passwordSection', page).show();
|
||||
}
|
||||
|
||||
$('#chkEnableLocalAccessWithoutPassword', page).checked(user.Configuration.EnableLocalPassword).checkboxradio('refresh');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue