fix(android): every refusal hands the screen back
Reported together, and the second explains the first: Cancel did nothing because Save disables it and nothing re-enabled it - a disabled button fires no click. And the screen never came back because the entry guards (busy, no uuid, no sync password) returned with a toast and nothing else, leaving the editor open with every control dead. A cul-de-sac with no way out but killing the app. Each guard now calls PM.editDone, which redraws the row from the last detail received. The page can leave edit mode without asking Delphi for anything, which is what it needed to recover from a refusal that never reached the network. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -613,6 +613,13 @@ var PM = {
|
||||
setDebug: function (on) {
|
||||
document.getElementById('btnWriteTest').hidden = !on;
|
||||
},
|
||||
/// Sort du mode edition sans rien demander a Delphi. Sert aux refus
|
||||
/// immediats : l'editeur y restait ouvert, boutons desactives, et Cancel
|
||||
/// lui-meme ne repondait plus.
|
||||
editDone: function () {
|
||||
if (lastDetail) renderDetail(lastDetail);
|
||||
},
|
||||
|
||||
showUnlock: function () {
|
||||
document.body.classList.remove('on-list', 'on-detail', 'searching');
|
||||
view = 'unlock';
|
||||
|
||||
Reference in New Issue
Block a user