mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-22 05:44:59 -05:00
web: Fixes spinner, updates instructions
This commit is contained in:
parent
ea05c4441b
commit
1a052c57e2
@ -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)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user