diff --git a/src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.html b/src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.html index 214db3587..9e1fb3385 100644 --- a/src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.html +++ b/src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.html @@ -10,7 +10,8 @@ > {{ messageToShow }} - + +
Customer name is required +
+
Customer description is required +
- diff --git a/src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.ts b/src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.ts index cc06a3e64..b18daf4bd 100644 --- a/src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.ts +++ b/src/app/modules/customer-management/components/customer-info/components/create-customer/create-customer.ts @@ -62,7 +62,6 @@ export class CreateCustomerComponent implements OnInit, OnDestroy { id: this.customerToEdit.id, }; this.store.dispatch(new UpdateCustomer(customer)); - this.customerForm.reset(); } else { this.store.dispatch(new CreateCustomer(customerData)); } @@ -95,6 +94,14 @@ export class CreateCustomerComponent implements OnInit, OnDestroy { } } + get name() { + return this.customerForm.get('name'); + } + + get description() { + return this.customerForm.get('description'); + } + resetCustomerForm() { this.customerForm.reset(); this.store.dispatch(new ResetCustomerToEdit()); diff --git a/src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.html b/src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.html index dc3fe21bc..720ccf022 100644 --- a/src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.html +++ b/src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.html @@ -12,7 +12,7 @@ - + diff --git a/src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.html b/src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.html index 764d2b999..2eda7232c 100644 --- a/src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.html +++ b/src/app/modules/customer-management/components/projects-type/components/create-project-type/create-project-type.component.html @@ -1,42 +1,21 @@
- +
Name is required.
- -
+
+ +
+ + -
+
diff --git a/src/app/modules/customer-management/components/projects/components/project-list/project-list.component.html b/src/app/modules/customer-management/components/projects/components/project-list/project-list.component.html index ed10b4e63..009aa279d 100644 --- a/src/app/modules/customer-management/components/projects/components/project-list/project-list.component.html +++ b/src/app/modules/customer-management/components/projects/components/project-list/project-list.component.html @@ -1,9 +1,3 @@ -
-
-
- -
-
NameCustomer name
diff --git a/src/app/modules/customer-management/pages/customer.component.html b/src/app/modules/customer-management/pages/customer.component.html index 462ba7d38..7b9b98898 100644 --- a/src/app/modules/customer-management/pages/customer.component.html +++ b/src/app/modules/customer-management/pages/customer.component.html @@ -1,12 +1,8 @@
-

Customers

-
+
-
- -
-
-
+
Summary

@@ -18,7 +17,6 @@
Month

49:32

-

@@ -40,7 +38,6 @@

49:32

-
@@ -49,7 +46,5 @@

49:32

-
-
diff --git a/src/styles/themes/_orange-theme.scss b/src/styles/themes/_orange-theme.scss index 9830558e2..215e0fb3b 100644 --- a/src/styles/themes/_orange-theme.scss +++ b/src/styles/themes/_orange-theme.scss @@ -1,5 +1,7 @@ @import '../colors.scss'; +$font-size-base: 0.9rem; + $primary: #fc5630; $secondary: #16bac5; $success: #16bac5;