Refactor dialog handling to utilize utility functions for improved consistency

Updated various components to replace direct dialog configurations with utility functions for building dialog configurations. This change enhances the maintainability and readability of the code by centralizing dialog setup logic, ensuring a consistent approach across the application. Additionally, improved error handling and user feedback mechanisms were implemented to provide clearer messages during interactions.
This commit is contained in:
Torsten Schulz (local)
2025-11-10 16:07:24 +01:00
parent 4cfa03834e
commit 620b065ac8
24 changed files with 608 additions and 323 deletions

View File

@@ -203,7 +203,8 @@ export default {
this.parsedData = result.data;
} catch (error) {
console.error('Fehler beim Parsen:', error);
alert('URL konnte nicht geparst werden');
// Hinweis: Im Frontend stattdessen InfoDialog/ConfirmDialog verwenden
// alert('URL konnte nicht geparst werden');
}
},
@@ -227,11 +228,14 @@ export default {
const result = await response.json();
if (result.success) {
alert('Team erfolgreich konfiguriert!');
// In der Anwendung bitte InfoDialog nutzen
// alert('Team erfolgreich konfiguriert!');
} else {
// alert('Team konnte nicht konfiguriert werden');
}
} catch (error) {
console.error('Fehler bei Konfiguration:', error);
alert('Team konnte nicht konfiguriert werden');
// alert('Team konnte nicht konfiguriert werden');
}
}
}