]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/www/plugson_image_list.html
Fix the order issue in TreeView mode. (#3218)
[Ventoy.git] / Plugson / www / plugson_image_list.html
index fbbcf07f5641a5ce9f6a90658312e79078a221cb..8d702f4d223aefbd7269e04e186e8843232b6fd8 100644 (file)
       index: current_tab_index,\r
       path: data.path,\r
     }, function(e) {\r
-      list.push(data);\r
-      FillImageListTable(list);\r
-      Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);\r
+      if (e.result === 'success') {\r
+        list.push(data);\r
+        FillImageListTable(list);\r
+        Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);\r
+      } else if (e.result === 'duplicate') {\r
+        Message.error(g_vtoy_cur_language.STR_DUPLICATE_PATH);\r
+      }\r
     });\r
   }\r
 \r