浏览代码

make UI more intuitive

Christian Herzog 5 年之前
父节点
当前提交
550b5fbf18
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      components/wifi-manager/code.js
  2. 2 2
      components/wifi-manager/index.html

+ 1 - 0
components/wifi-manager/code.js

@@ -175,6 +175,7 @@ $(document).ready(function(){
     });
 
     $("input#autoexec-cb").on("click", function() {
+        showMessage('please wait for the ESP32 to reboot', 'WARNING');
         var data = { 'timestamp': Date.now() };
         autoexec = (this.checked)?1:0;
         data['autoexec'] = autoexec;

+ 2 - 2
components/wifi-manager/index.html

@@ -192,10 +192,10 @@
                         <input id="save-autoexec1" type="button" class="btn btn-success" value="Save" />
                     </div>
 
-                    <h1>Start Squeezelite</h1>
+                    <h1>Start Squeezelite (toggle to activate changes)</h1>
                     <div class="custom-control custom-switch">
-                          <input type="checkbox" class="custom-control-input" id="autoexec-cb" checked="checked">
                           <label class="custom-control-label" for="autoexec-cb"></label>
+                          <input type="checkbox" class="custom-control-input" id="autoexec-cb" checked="checked">
                     </div>
                     <br />
                 </div>