Skip to content

Commit

Permalink
web: Fixes spinner, updates instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rieck-srlabs committed Oct 18, 2023
1 parent ea05c44 commit 1a052c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions files/www/luci-static/resources/view/blue-merle.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,15 @@ function handleSimSwap(ev) {
);
callBlueMerle("random-imei").then(
function(res) {
document.getElementById(spinnerID).style = "render: none";
document.getElementById(spinnerID).style = "display:none";
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")
_("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 },
[ _('Shutdown…') ]
Expand Down Expand Up @@ -389,14 +389,13 @@ return view.extend({

readIMEI().then(
function(imei) {
console.log("My controllolol", imei);
const e = document.getElementById(imeiInputID);
console.log("Input: ", e, e.placeholder, e.value);
e.value = imei;
}
).catch(
function(err){
console.log("Errrrrr", err)
console.log("Error: ", err)
}
)

Expand Down

0 comments on commit 1a052c5

Please sign in to comment.