diff --git a/module/webui/locales/A-template.json b/module/webui/locales/A-template.json index 163f859..932ebc6 100644 --- a/module/webui/locales/A-template.json +++ b/module/webui/locales/A-template.json @@ -98,6 +98,8 @@ "get_date": "Get Security Patch Date", "auto": "Auto", "save": "Save", + "fetching": "Fetching...", + "fetched": "Done", "get_failed": "Failed to fetch security patch date", "auto_success": "Auto config enabled successfully", "auto_failed": "Failed to enable auto config", diff --git a/module/webui/locales/en-US.json b/module/webui/locales/en-US.json index 163f859..932ebc6 100644 --- a/module/webui/locales/en-US.json +++ b/module/webui/locales/en-US.json @@ -98,6 +98,8 @@ "get_date": "Get Security Patch Date", "auto": "Auto", "save": "Save", + "fetching": "Fetching...", + "fetched": "Done", "get_failed": "Failed to fetch security patch date", "auto_success": "Auto config enabled successfully", "auto_failed": "Failed to enable auto config", diff --git a/module/webui/locales/es-ES.json b/module/webui/locales/es-ES.json index f63149d..4543dd9 100644 --- a/module/webui/locales/es-ES.json +++ b/module/webui/locales/es-ES.json @@ -98,6 +98,8 @@ "get_date": "Obtener Fecha del Parche de Seguridad", "auto": "Automático", "save": "Guardar", + "fetching": "Obteniendo...", + "fetched": "Completado", "get_failed": "Error al obtener la fecha del parche de seguridad", "auto_success": "Configuración automática habilitada con éxito", "auto_failed": "Error al habilitar la configuración automática", diff --git a/module/webui/locales/ja-JP.json b/module/webui/locales/ja-JP.json index ece7c0b..daa5f25 100644 --- a/module/webui/locales/ja-JP.json +++ b/module/webui/locales/ja-JP.json @@ -98,6 +98,8 @@ "get_date": "セキュリティパッチの日付を取得", "auto": "自動", "save": "保存", + "fetching": "取得中...", + "fetched": "完了", "get_failed": "セキュリティパッチの日付の取得に失敗しました", "auto_success": "自動配置已成功啟用", "auto_failed": "自動設定を有効にできませんでした", diff --git a/module/webui/locales/ru-RU.json b/module/webui/locales/ru-RU.json index 1dee3fa..9ff273e 100644 --- a/module/webui/locales/ru-RU.json +++ b/module/webui/locales/ru-RU.json @@ -98,6 +98,8 @@ "get_date": "Получить дату патча безопасности", "auto": "Авто", "save": "Сохранить", + "fetching": "Получение...", + "fetched": "Готово", "get_failed": "Не удалось получить дату патча безопасности", "auto_success": "Автоматическая конфигурация успешно включена", "auto_failed": "Не удалось включить автоматическую конфигурацию", diff --git a/module/webui/locales/tl-PH.json b/module/webui/locales/tl-PH.json index f8d3222..ce1b27b 100644 --- a/module/webui/locales/tl-PH.json +++ b/module/webui/locales/tl-PH.json @@ -98,6 +98,8 @@ "get_date": "Kunin ang Petsa ng Security Patch", "auto": "Auto", "save": "I-save", + "fetching": "Kumukuha...", + "fetched": "Tapos na", "get_failed": "Hindi makuha ang petsa ng security patch", "auto_success": "Matagumpay na na-enable ang auto config", "auto_failed": "Nabigong i-enable ang auto config", diff --git a/module/webui/locales/tr-TR.json b/module/webui/locales/tr-TR.json index 4013ea3..2ff60df 100644 --- a/module/webui/locales/tr-TR.json +++ b/module/webui/locales/tr-TR.json @@ -98,6 +98,8 @@ "get_date": "Güvenlik Yaması Tarihini Al", "auto": "Otomatik", "save": "Kaydet", + "fetching": "Alınıyor...", + "fetched": "Tamamlandı", "get_failed": "Güvenlik yaması tarihi alınamadı", "auto_success": "Otomatik yapılandırma başarıyla etkinleştirildi", "auto_failed": "Otomatik yapılandırma etkinleştirilemedi", diff --git a/module/webui/locales/zh-CN.json b/module/webui/locales/zh-CN.json index 517672f..4ed7ea1 100644 --- a/module/webui/locales/zh-CN.json +++ b/module/webui/locales/zh-CN.json @@ -98,6 +98,8 @@ "get_date": "获取安全补丁日期", "auto": "自动", "save": "保存", + "fetching": "获取中...", + "fetched": "完成", "get_failed": "获取安全补丁日期失败", "auto_success": "自动配置成功启用", "auto_failed": "无法启用自动配置", diff --git a/module/webui/locales/zh-TW.json b/module/webui/locales/zh-TW.json index 6c7a017..a3945db 100644 --- a/module/webui/locales/zh-TW.json +++ b/module/webui/locales/zh-TW.json @@ -98,6 +98,8 @@ "get_date": "獲取安全補丁日期", "auto": "自動", "save": "保存", + "fetching": "獲取中...", + "fetched": "完成", "get_failed": "獲取安全補丁日期失敗", "auto_success": "自動配置成功啟用", "auto_failed": "無法啟用自動配置", diff --git a/module/webui/scripts/security_patch.js b/module/webui/scripts/security_patch.js index 79faf16..8ac76fd 100644 --- a/module/webui/scripts/security_patch.js +++ b/module/webui/scripts/security_patch.js @@ -324,7 +324,10 @@ export function securityPatch() { // Get button getButton.addEventListener('click', async () => { try { + showPrompt('security_patch.fetching'); + await new Promise(resolve => setTimeout(resolve, 200)); const output = await execCommand(`sh ${basePath}common/get_extra.sh --get-security-patch`); + showPrompt('security_patch.fetched', true, 1000); advancedToggle.checked = true; normalInputs.classList.add('hidden'); advancedInputs.classList.remove('hidden');