show prompt on fetching security patch date

This commit is contained in:
KOWX712
2025-02-20 18:27:17 +08:00
parent 5f70249003
commit b6c81362fe
10 changed files with 21 additions and 0 deletions

View File

@@ -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');