mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-22 05:44:59 -05:00
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:
parent
580d456ed1
commit
958a0ecc99
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user