1
0
Fork 0
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:
woorim02 2024-08-18 14:51:05 +09:00
parent 8c7ed0fd36
commit dcc1a3093b
3 changed files with 39 additions and 1 deletions

View file

@ -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);
}