Skip to content

Commit 9ec6f73

Browse files
committed
Frontend added
1 parent ac72bc9 commit 9ec6f73

36 files changed

+14
-8
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
./binlog.000001
22
./binlog.000002
3+
./binlog.000003
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

microservices-frontend/src/app/pages/home-page/home-page.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class HomePageComponent implements OnInit {
4747
this.router.navigateByUrl('/add-product');
4848
}
4949

50-
orderProduct(product: Product, quantity: string) {
50+
orderProduct(product: Product, quantity: String) {
5151

5252
this.oidcSecurityService.userData$.subscribe(result => {
5353
const userDetails = {
@@ -56,6 +56,7 @@ export class HomePageComponent implements OnInit {
5656
lastName: result.userData.lastName
5757
};
5858

59+
5960
if(!quantity) {
6061
this.orderFailed = true;
6162
this.orderSuccess = false;

microservices-frontend/src/app/services/product/product.service.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { TestBed } from '@angular/core/testing';
22

3-
import { ProductService } from '../product.service';
3+
// import { ProductService } from '../product.service';
44

5+
import { ProductService } from './product.service';
56
describe('ProductService', () => {
67
let service: ProductService;
78

0 commit comments

Comments
 (0)