Browse Source

Push before platform switch

TC pushbot 5 4 năm trước cách đây
mục cha
commit
0c905cf434
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      web/SystemAO/disk/diskmg.html

+ 4 - 2
web/SystemAO/disk/diskmg.html

@@ -650,11 +650,13 @@
                           var diskID = thisDisk["name"];
                           if (thisDisk["children"] === undefined || thisDisk["children"] === null){
                               //This disk do not have any child. Assume a large read-only raw partition.
-                              var size = thisDisk[size] || 0;
+                              var size = thisDisk["size"] || 0;
+                              var partitionID = thisDisk["name"] || "✖";
+                              console.log(thisDisk);
                               disks[diskID] = {
                                   "partitionsTotalSize":size,
                                   "partitionNames":["Raw"],
-                                  "partitionID":["✖"],
+                                  "partitionID":[partitionID],
                                   "partitionVolume":[size],
                                   "Type":[thisDisk["type"]],
                                   "Mounted":[thisDisk["mountpoint"] !== null],