mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Fill login box after a reload.
This commit is contained in:
parent
b7aea3a4d1
commit
e17d97100b
1 changed files with 10 additions and 5 deletions
|
@ -250,6 +250,14 @@ function closeVideoControls() {
|
||||||
document.getElementById('collapse-video').style.display = "";
|
document.getElementById('collapse-video').style.display = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fillLogin() {
|
||||||
|
let userpass = getUserPass();
|
||||||
|
getInputElement('username').value =
|
||||||
|
userpass ? userpass.username : '';
|
||||||
|
getInputElement('password').value =
|
||||||
|
userpass ? userpass.password : '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param{boolean} connected
|
* @param{boolean} connected
|
||||||
*/
|
*/
|
||||||
|
@ -264,11 +272,7 @@ function setConnected(connected) {
|
||||||
displayUsername();
|
displayUsername();
|
||||||
} else {
|
} else {
|
||||||
resetUsers();
|
resetUsers();
|
||||||
let userpass = getUserPass();
|
fillLogin();
|
||||||
getInputElement('username').value =
|
|
||||||
userpass ? userpass.username : '';
|
|
||||||
getInputElement('password').value =
|
|
||||||
userpass ? userpass.password : '';
|
|
||||||
userbox.classList.add('invisible');
|
userbox.classList.add('invisible');
|
||||||
connectionbox.classList.remove('invisible');
|
connectionbox.classList.remove('invisible');
|
||||||
displayError('Disconnected', 'error');
|
displayError('Disconnected', 'error');
|
||||||
|
@ -2299,6 +2303,7 @@ function start() {
|
||||||
|
|
||||||
setMediaChoices(false).then(e => reflectSettings());
|
setMediaChoices(false).then(e => reflectSettings());
|
||||||
|
|
||||||
|
fillLogin();
|
||||||
document.getElementById("login-container").classList.remove('invisible');
|
document.getElementById("login-container").classList.remove('invisible');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue