web: Fixes spinner, updates instructions

This commit is contained in:
Jakob Rieck 2023-10-18 18:01:40 +02:00
parent ea05c4441b
commit 1a052c57e2

View File

@ -292,7 +292,7 @@ function handleSimSwap(ev) {
); );
callBlueMerle("random-imei").then( callBlueMerle("random-imei").then(
function(res) { function(res) {
document.getElementById(spinnerID).style = "render: none"; document.getElementById(spinnerID).style = "display:none";
dlg.appendChild( dlg.appendChild(
E('div', { 'class': 'text'}, E('div', { 'class': 'text'},
[ [
@ -300,7 +300,7 @@ function handleSimSwap(ev) {
_("IMEI set:") + " " + res _("IMEI set:") + " " + res
), ),
E('p', { 'class': 'text'}, E('p', { 'class': 'text'},
_("Please shutdown the device and go to another place before booting") _("Please shutdown the device, swap the SIM, then go to another place before booting")
), ),
E('button', { 'class': 'btn cbi-button-positive', 'click': handleShutdown, 'disabled': isReadonlyView }, E('button', { 'class': 'btn cbi-button-positive', 'click': handleShutdown, 'disabled': isReadonlyView },
[ _('Shutdown…') ] [ _('Shutdown…') ]
@ -389,14 +389,13 @@ return view.extend({
readIMEI().then( readIMEI().then(
function(imei) { function(imei) {
console.log("My controllolol", imei);
const e = document.getElementById(imeiInputID); const e = document.getElementById(imeiInputID);
console.log("Input: ", e, e.placeholder, e.value); console.log("Input: ", e, e.placeholder, e.value);
e.value = imei; e.value = imei;
} }
).catch( ).catch(
function(err){ function(err){
console.log("Errrrrr", err) console.log("Error: ", err)
} }
) )