Преглед на файлове

Fixed File manager backup and restore item show up in context menu issue

TC pushbot 5 преди 4 години
родител
ревизия
ee53388b7f
променени са 2 файла, в които са добавени 9 реда и са изтрити 1 реда
  1. 1 1
      start.sh
  2. 8 0
      web/SystemAO/file_system/file_explorer.html

+ 1 - 1
start.sh

@@ -1,2 +1,2 @@
 #!/bin/bash
-sudo ./arozos -hostname "ixtw" -allow_upnp=true -port 8082 -tls=true -tls_port 8443  -max_upload_size 25000
+sudo ./arozos -port 8080 -tls=true -tls_port 8443

+ 8 - 0
web/SystemAO/file_system/file_explorer.html

@@ -1861,12 +1861,15 @@
                     }
 
                     if ($(".fileObject.selected").length != 1){
+                        //Multiple object selected
                         $(".singleObjectOnly").addClass("disabled");
                         $(".singleObjectOnlyHide").hide();
                     }else{
+                        //Single object
                         $(".singleObjectOnly").removeClass("disabled");
                         $(".singleObjectOnlyHide").show();
                     }
+
                 });
 
                 //Bind right click select on items
@@ -1940,6 +1943,9 @@
                     $("#contextmenu").find(".vroothide").show();
                     $("#contextmenu").find(".noSelectionOnly").hide();
                     $("#contextmenu").find(".vrootonly").hide();
+                    
+                    //Hide backup manual
+                    $("#contextmenu").find(".backuponly").hide();
 
                     //Check if this is folder or file. Replace the suitable selections
                     if ($(this).attr("type") == "folder"){
@@ -2024,6 +2030,8 @@
                         //Check if this is a backup drive
                         if (containBackup == true){
                             $("#contextmenu").find(".backuponly").show();
+                        }else{
+                            $("#contextmenu").find(".backuponly").hide();
                         }
 
                         //Show context menu