diff --git a/components/wifi-manager/code.js b/components/wifi-manager/code.js
index 75e205b1..f1586fe0 100644
--- a/components/wifi-manager/code.js
+++ b/components/wifi-manager/code.js
@@ -212,7 +212,7 @@ $(document).ready(function(){
console.log('sent config JSON with headers:', autoexec1);
});
- $("#recovery").on("click", function() {
+ $("#flash").on("click", function() {
var url = $("#fwurl").val();
$.ajax({
url: '/config.json',
@@ -222,23 +222,6 @@ $(document).ready(function(){
headers: { "X-Custom-fwurl": url },
data: { 'timestamp': Date.now() }
});
- $.ajax({
- url: '/recovery.json',
- dataType: 'json',
- method: 'POST',
- cache: false,
- data: { 'timestamp': Date.now()}
- });
- });
-
- $("#reboot").on("click", function() {
- $.ajax({
- url: '/reboot.json',
- dataType: 'json',
- method: 'POST',
- cache: false,
- data: { 'timestamp': Date.now()}
- });
});
$("#generate-command").on("click", function() {
@@ -494,11 +477,9 @@ function getConfig() {
if (data.hasOwnProperty('recovery')) {
if (data["recovery"] === 1) {
recovery = true;
- //$("#recoverydiv").hide();
$("#otadiv").show();
} else {
recovery = false;
- $("#recoverydiv").show();
$("#otadiv").hide();
}
}
diff --git a/components/wifi-manager/index.html b/components/wifi-manager/index.html
index fb1e9625..92e15473 100644
--- a/components/wifi-manager/index.html
+++ b/components/wifi-manager/index.html
@@ -199,40 +199,30 @@
-
-
Check for firmware upgrade
-
-
-
-
-
-
- | Firmware version |
- IDF version |
- HW platform |
- Branch |
- Flash this FW |
-
-
-
-
-
-
Firmware URL:
-
-
Reboot to recovery system to perform firmware upgrade
-
-
-
+
Check for firmware upgrade
+
+
+
+
+
+
+ | Firmware version |
+ IDF version |
+ HW platform |
+ Branch |
+ Flash this FW |
+
+
+
+
+
+
Firmware URL:
+
+
+
-
-
-
Reboot system with new firmware
-
-
-
+
diff --git a/components/wifi-manager/style.css b/components/wifi-manager/style.css
index 85cc4937..b778df4f 100644
--- a/components/wifi-manager/style.css
+++ b/components/wifi-manager/style.css
@@ -290,3 +290,7 @@ input, textarea {
font-family: monospace, monospace;
font-size: 70%;
}
+
+#progress {
+ margin-left: 13px;
+}