-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add public user listing option to networking settings #6672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add public user listing option to networking settings #6672
Conversation
Cloudflare Pages deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
if (config.PublicUserListingLocalOnly && config.PublicUserListing) { | ||
page.querySelector('#selectPublicUserListing').value = 'local'; | ||
} else if (config.PublicUserListing) { | ||
page.querySelector('#selectPublicUserListing').value = 'always'; | ||
} else { | ||
page.querySelector('#selectPublicUserListing').value = 'never'; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For maintainability: fewer places with the identifier.
if (config.PublicUserListingLocalOnly && config.PublicUserListing) { | |
page.querySelector('#selectPublicUserListing').value = 'local'; | |
} else if (config.PublicUserListing) { | |
page.querySelector('#selectPublicUserListing').value = 'always'; | |
} else { | |
page.querySelector('#selectPublicUserListing').value = 'never'; | |
} | |
const selectPublicUserListing = page.querySelector('#selectPublicUserListing'); | |
if (config.PublicUserListingLocalOnly && config.PublicUserListing) { | |
selectPublicUserListing.value = 'local'; | |
} else if (config.PublicUserListing) { | |
selectPublicUserListing.value = 'always'; | |
} else { | |
selectPublicUserListing.value = 'never'; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that should be done, thanks for the feedback!
@@ -46,6 +46,8 @@ function onSubmit(e) { | |||
return s.length > 0; | |||
}); | |||
|
|||
const publicUserListing = form.querySelector('#selectPublicUserListing'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think .value
was fine.
Otherwise, it would be better to rename publicUserListing
to selectPublicUserListing
to match the other function. Or vice versa.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, renamed the variable and extra spacing added
|
Changes

Add public user listing option to networking settings
This is to provide web client control of the feature added in jellyfin/jellyfin#13776