feat(apk): bouton Save dans les reglages, fermer n'enregistre plus
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -575,6 +575,7 @@
|
||||
type="password" autocomplete="off">
|
||||
<div class="in-x" data-clear="sPwd">×</div>
|
||||
</div>
|
||||
<button class="btn wide main" id="sSave">Save</button>
|
||||
<div class="note">The sync password never leaves this device. It is what
|
||||
encrypts the copy kept in the repository, so it must be the same on every
|
||||
device that shares it; the token only opens the repository. It is not the
|
||||
@@ -1618,13 +1619,18 @@ function openSettings() {
|
||||
send('state?view=settings');
|
||||
}
|
||||
|
||||
function closeSettings() {
|
||||
// Ce qui a ete tape ici redescend vers Delphi avant de fermer, sinon un
|
||||
// reglage modifie puis referme sans quitter le champ serait perdu.
|
||||
// ENREGISTRER EST UN GESTE, FERMER N'ENREGISTRE RIEN. Fermer enregistrait :
|
||||
// une URL effacee par erreur partait avec le retour, sans moyen de revenir.
|
||||
// Desormais retour = annuler, et la page repart des valeurs enregistrees.
|
||||
document.getElementById('sSave').addEventListener('click', function () {
|
||||
elUrl.value = document.getElementById('sUrl').value.trim();
|
||||
elTok.value = document.getElementById('sTok').value.trim();
|
||||
elPwd.value = document.getElementById('sPwd').value;
|
||||
pushConfig();
|
||||
toast('Saved');
|
||||
});
|
||||
|
||||
function closeSettings() {
|
||||
document.body.classList.remove('on-settings');
|
||||
send('state?view=' + view);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user