besprechung

This commit is contained in:
Nico
2025-06-06 19:46:29 +02:00
parent 7d85090d4e
commit ccf1643711
13 changed files with 256 additions and 210 deletions

View File

@@ -72,12 +72,12 @@ class AddEntriesDialogHelper {
TextButton(
onPressed: () async {
setState(() => isLoading = true);
int errorCode = await HttpRequest.httpRequest(
int errorCode = await HttpRequestService.httpRequest(
saveDataMap: saveData,
);
setState(() => isLoading = false);
if (errorCode == 201 && context.mounted) {
if (errorCode == 200 && context.mounted) {
Navigator.pop(context);
// saveData(true);
SaveMainEntryMethod.saveEntry(
@@ -160,12 +160,12 @@ class AddEntriesDialogHelper {
TextButton(
onPressed: () async {
setState(() => isLoading = true);
int errorCode = await HttpRequest.httpRequest(
int errorCode = await HttpRequestService.httpRequest(
saveDataMap: saveData,
);
setState(() => isLoading = false);
if (errorCode != 201 || !context.mounted) {
if (errorCode != 200 || !context.mounted) {
SaveMainEntryMethod.saveEntry(
entryData: saveData,
isTemplate: isTemplate,