web: actually changing the UI when the script returns

When it doesn't time out it seems to be working. Weird.
This commit is contained in:
Tobias Mueller 2023-10-17 16:51:51 +02:00
parent 580d456ed1
commit 958a0ecc99

View File

@ -338,14 +338,19 @@ function handleSimSwap(ev) {
);
callBlueMerle("random-imei").then(
function(res) {
E('p', { 'class': 'text'},
_("IMEI set:") + " " + res
),
E('p', { 'class': 'text'},
_("Please shutdown the device and go to another place before booting")
),
E('button', { 'class': 'btn cbi-button-positive', 'click': handleShutdown, 'disabled': isReadonlyView },
[ _('Shutdown…') ])
dlg.appendChild(
E('div', { 'class': 'text'}, [
E('p', { 'class': 'text'},
_("IMEI set:") + " " + res
)
E('p', { 'class': 'text'},
_("Please shutdown the device and go to another place before booting")
),
E('button', { 'class': 'btn cbi-button-positive', 'click': handleShutdown, 'disabled': isReadonlyView },
[ _('Shutdown…') ])
)
]
)
}
).catch(
function(err) {