feat: enhance configuration management, add update checks, and improve UI components

This commit is contained in:
2026-03-02 12:13:01 +01:00
parent ed25c5299d
commit e8e76cdf8b
12 changed files with 239 additions and 46 deletions

View File

@@ -64,6 +64,8 @@ export default function RequestPermitModal({ visible, types, onClose, onSubmit }
if (response.data.status === 'success') {
alert.showAlert('success', 'Successo', response.data.message || 'La tua richiesta è stata inviata con successo.');
onSubmit(requestData);
onClose();
} else {
alert.showAlert('error', 'Errore', response.data.message || 'Impossibile inviare la richiesta.');
}
@@ -92,8 +94,6 @@ export default function RequestPermitModal({ visible, types, onClose, onSubmit }
try {
await saveRequest(requestData);
onSubmit(requestData);
onClose();
} catch (e) {
alert.showAlert("error", "Errore", "Impossibile inviare la richiesta.");
}