X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/bf797ceadbc70f004bcb0ea463ca568f1e622bfe..9b7d6cbc3dc75d0d5fe998f57195e7c39dd0fcd4:/Plugson/www/plugson_theme.html diff --git a/Plugson/www/plugson_theme.html b/Plugson/www/plugson_theme.html index e6f96a0..5c2f6d8 100644 --- a/Plugson/www/plugson_theme.html +++ b/Plugson/www/plugson_theme.html @@ -403,9 +403,13 @@ index: current_tab_index, path: data.path }, function(e) { - list.push(data); - FillThemeFileTable(list, m_data_theme[current_tab_index].default_file); - Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS); + if (e.result === 'success') { + list.push(data); + FillThemeFileTable(list, m_data_theme[current_tab_index].default_file); + Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS); + } else if (e.result === 'duplicate') { + Message.error(g_vtoy_cur_language.STR_DUPLICATE_PATH); + } }); } @@ -428,9 +432,13 @@ index: current_tab_index, path: data.path }, function(e) { - list.push(data); - FillThemeFontTable(list); - Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS); + if (e.result === 'success') { + list.push(data); + FillThemeFontTable(list); + Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS); + } else if (e.result === 'duplicate') { + Message.error(g_vtoy_cur_language.STR_DUPLICATE_PATH); + } }); }