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( callBlueMerle("random-imei").then(
function(res) { function(res) {
E('p', { 'class': 'text'}, dlg.appendChild(
_("IMEI set:") + " " + res E('div', { 'class': 'text'}, [
), E('p', { 'class': 'text'},
E('p', { 'class': 'text'}, _("IMEI set:") + " " + res
_("Please shutdown the device and go to another place before booting") )
), E('p', { 'class': 'text'},
E('button', { 'class': 'btn cbi-button-positive', 'click': handleShutdown, 'disabled': isReadonlyView }, _("Please shutdown the device and go to another place before booting")
[ _('Shutdown…') ]) ),
E('button', { 'class': 'btn cbi-button-positive', 'click': handleShutdown, 'disabled': isReadonlyView },
[ _('Shutdown…') ])
)
]
)
} }
).catch( ).catch(
function(err) { function(err) {