Projektkezeléssel kapcsolatos hibajavítások, projekt törlése a szerveren, bejelentkezés
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s

This commit is contained in:
2026-08-09 23:18:06 +02:00
parent e1128700f0
commit fcd3971079
4 changed files with 317 additions and 37 deletions
+10 -3
View File
@@ -218,9 +218,16 @@ class _ProjectTileState extends State<_ProjectTile> {
TextButton(onPressed: Get.back, child: const Text('Mégse')),
FilledButton(
style: FilledButton.styleFrom(backgroundColor: Colors.orange),
onPressed: () {
Get.back();
ProjectService.to.archiveProject(widget.project.id!);
onPressed: () async {
try {
ProjectService.to.archiveProject(widget.project.id!);
Get.back();
} catch (e) {
Get.snackbar('Nem archiválható', e.toString(),
snackPosition: SnackPosition.BOTTOM,
backgroundColor: Colors.red,
colorText: Colors.white);
}
},
child: const Text('Archiválás'),
),