feat(back-end):improvement
Some checks failed
Build, Test and Deploy / test-backend (push) Successful in 1m19s
Build, Test and Deploy / build-and-push (push) Failing after 37s
Build, Test and Deploy / deploy (push) Has been skipped

This commit is contained in:
2026-02-13 16:03:44 +01:00
parent e1d9823b51
commit f165d191be
16 changed files with 260 additions and 45 deletions

View File

@@ -26,7 +26,7 @@ export class CalculatorPageComponent implements OnInit {
loading = signal(false);
uploadProgress = signal(0);
result = signal<QuoteResult | null>(null);
error = signal<boolean>(false);
error = signal<string | null>(null);
orderSuccess = signal(false);
@@ -141,7 +141,7 @@ export class CalculatorPageComponent implements OnInit {
this.currentRequest = req;
this.loading.set(true);
this.uploadProgress.set(0);
this.error.set(false);
this.error.set(null);
this.result.set(null);
this.orderSuccess.set(false);
@@ -175,8 +175,12 @@ export class CalculatorPageComponent implements OnInit {
}
}
},
error: () => {
this.error.set(true);
error: (err) => {
if (typeof err === 'string') {
this.error.set(err);
} else {
this.error.set('GENERIC');
}
this.loading.set(false);
}
});