Projektkezeléssel kapcsolatos hibajavítások, projekt törlése a szerveren, bejelentkezés
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
@@ -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'),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user