فهرست منبع

Fixed File Selector transition animation issue

Toby Chui 3 سال پیش
والد
کامیت
e1f99ddeed
2فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 4 1
      web/SystemAO/file_system/file_selector.html
  2. 3 0
      web/SystemAO/locale/file_selector.json

+ 4 - 1
web/SystemAO/file_system/file_selector.html

@@ -172,7 +172,7 @@
                   
                 </div>
                 <div id="nofilesCheckmark" style="width: 100%; margin-top: calc(150px - 2em); text-align:center; opacity: 0.6; display:none; pointer-events: none; user-select: none;">
-                     <p><i class="grey folder open icon"></i><i class="grey checkmark icon"></i></p>
+                     <p><i class="grey folder open icon"></i> <span locale="message/nofile">No file</span></p>
                 </div>
             </div>
         </div>
@@ -422,6 +422,9 @@
                 pathHistory.push(currentDir);
                 $("#addressbar").val(currentDir);
                 $("#nofilesCheckmark").hide();
+                $("#folderList").html(`<div class="ui fluid" style="text-align: center; padding: 1.2em;"><i class="ui loading spinner icon"></i></div>`);
+                $("#folderList").show();
+                $("#fileList").hide();
                 ao_module_setWindowTitle(`Open`);
                 $.get("../../system/file_system/listDir?dir=" + encodeURIComponent(dir),function(data){
                     $("#folderList").html("");

+ 3 - 0
web/SystemAO/locale/file_selector.json

@@ -11,6 +11,7 @@
                 "roots/storage":"虛擬儲存裝置",
                 "message/loading":"載入中…",
                 "message/waitingResp":"正在確認選擇…",
+                "message/nofile":"沒有檔案",
 
                 "sidebar/vroot/desktop": "桌面",
                 "sidebar/vroot/document": "文件",
@@ -46,6 +47,7 @@
                 "roots/storage":"虛擬儲存裝置",
                 "message/loading":"載入中…",
                 "message/waitingResp":"正在確認選擇…",
+                "message/nofile":"沒有檔案",
 
                 "sidebar/vroot/desktop": "桌面",
                 "sidebar/vroot/document": "文件",
@@ -81,6 +83,7 @@
                 "roots/storage":"虚拟储存装置",
                 "message/loading":"载入中…",
                 "message/waitingResp":"正在确认选择…",
+                "message/nofile":"沒有文件",
 
                 "sidebar/vroot/desktop": "桌面",
                 "sidebar/vroot/document": "文件",