mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add show password button to login page
This commit is contained in:
parent
8c7ed0fd36
commit
dcc1a3093b
3 changed files with 39 additions and 1 deletions
|
@ -181,6 +181,15 @@ function loadUserList(context, apiClient, users) {
|
|||
context.querySelector('#divUsers').innerHTML = html;
|
||||
}
|
||||
|
||||
function togglePassword() {
|
||||
const input = document.getElementById('txtManualPassword');
|
||||
if (input.type === 'password') {
|
||||
input.type = 'text';
|
||||
} else {
|
||||
input.type = 'password';
|
||||
}
|
||||
}
|
||||
|
||||
export default function (view, params) {
|
||||
function getApiClient() {
|
||||
const serverId = params.serverid;
|
||||
|
@ -310,5 +319,6 @@ export default function (view, params) {
|
|||
view.addEventListener('viewhide', function () {
|
||||
libraryMenu.setTransparentMenu(false);
|
||||
});
|
||||
view.querySelector('.passwordToggle').addEventListener('click', togglePassword);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue