diff --git a/src/app/app.config.ts b/src/app/app.config.ts
index 2698e89..69bf2e9 100644
--- a/src/app/app.config.ts
+++ b/src/app/app.config.ts
@@ -3,9 +3,11 @@ import {provideRouter, withComponentInputBinding} from '@angular/router';
import {routes} from './app.routes';
import {MAT_DATE_FORMATS, MAT_NATIVE_DATE_FORMATS, provideNativeDateAdapter} from "@angular/material/core";
+import {provideHttpClient, withFetch, withJsonpSupport} from "@angular/common/http";
export const appConfig: ApplicationConfig = {
providers: [
+ provideHttpClient(withFetch(), withJsonpSupport()),
provideBrowserGlobalErrorListeners(),
provideZoneChangeDetection({eventCoalescing: true}),
provideRouter(routes, withComponentInputBinding()),
diff --git a/src/app/components/add-task/add-task.html b/src/app/components/add-task/add-task.html
index 6a8c80b..b9ffb47 100644
--- a/src/app/components/add-task/add-task.html
+++ b/src/app/components/add-task/add-task.html
@@ -12,43 +12,13 @@
Añadir Tarea
}
-
-
- Description:
-
-
-
- @if(formControls.description?.invalid && (formControls.description?.dirty || formControls.description?.touched || form.submitted)) {
-
- {{ checkForErrorsIn(formControls.description) | titlecase }}
-
- }
-
-
-
- Expiration Date:
-
-
-
-
-
- @if(formControls.expirationDate?.invalid && (formControls.expirationDate?.dirty || formControls.expirationDate?.touched || form.submitted)) {
-
- {{ checkForErrorsIn(formControls.expirationDate) | titlecase }}
-
- }
-
-
+
- Priority:
+ Completed:
-
- @for (priority of priorities; track priority) {
- {{ priority }}
+
+ @for (completedOption of completedOptions; track completedOption) {
+ {{ completedOption }}
}
@@ -58,38 +28,6 @@ Añadir Tarea
}
-
-
- Status:
-
-
- @for (status of statuses; track status) {
- {{ status }}
- }
-
-
- @if(formControls.status?.invalid && (formControls.status?.dirty || formControls.status?.touched || form.submitted)) {
-
- {{ checkForErrorsIn(formControls.status) | titlecase }}
-
- }
-
-
-
- Category:
-
-
- @for (category of categories; track category) {
- {{ category }}
- }
-
-
- @if(formControls.category?.invalid && (formControls.category?.dirty || formControls.category?.touched || form.submitted)) {
-
- {{ checkForErrorsIn(formControls.category) | titlecase }}
-
- }
-