Commit d0b7be73 authored by Michail Tzanatos's avatar Michail Tzanatos
Browse files

added shopping cart in products portal

parent 3a75bba7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,14 +39,14 @@

                    </div>

                    <!-- <button *ngIf="(authService.isAuthenticated$ | async)" type="button" class="btn btn-primary my-3" (click)="placeInOrderList()">
                    <button *ngIf="(authService.isAuthenticated$ | async)" type="button" class="btn btn-primary my-3" (click)="placeInOrderList()">
                        <i class="fas fa-shopping-cart mr-1"></i>
                        <span> Place in Order List </span>
                    </button>

                    <div *ngIf="!(authService.isAuthenticated$ | async)" class="my-3">
                        <b class="shadowed">You must be logged in to place an order</b>
                    </div> -->
                    </div>
                    <!-- <div class="separator-div"></div> -->

                </div>
+5 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { ProductOffering, ProductSpecification } from 'src/app/openApis/productCatalogManagement/models';
import { ProductSpecificationService } from 'src/app/openApis/productCatalogManagement/services';
import { fadeIn } from 'src/app/shared/animations/animations';
import { AuthService } from 'src/app/shared/services/auth.service';
import { ThemingService } from 'src/app/theming/theming.service';

@Component({
@@ -20,7 +21,8 @@ export class PreviewMarketPlaceItemComponent implements OnInit {
    },
    private dialogRef: MatDialogRef<PreviewMarketPlaceItemComponent>,
    private specService: ProductSpecificationService,
    private themingService: ThemingService
    private themingService: ThemingService,
    public authService: AuthService
  ) { }

  productOffering: ProductOffering
@@ -54,6 +56,8 @@ export class PreviewMarketPlaceItemComponent implements OnInit {

  }

  placeInOrderList() {}

  closeDialog() {
      this.dialogRef.close()
  }
+1 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@
            <ng-container *ngIf="appService.portalDomain !== '' && appService.portalDomain !== 'metrics'">
                <ng-container *ngIf="authService.isAuthenticated$ | async; else elseTemplate">
                    <ul class="navbar-nav">
                            <li class="nav-item" [@fadeIn] *ngIf="appService.portalDomain === 'services'">
                            <li class="nav-item" [@fadeIn] *ngIf="appService.portalDomain === 'services' || appService.portalDomain === 'products'">
                                <a class="nav-link d-flex align-items-center" routerLink="/{{appService.portalDomain}}/service_order_checkout">
                                    <span class="badge badge-danger mr-1"> {{requesterService.orderedSpecsList.length}} </span>
                                    <i class="fas fa-shopping-cart mr-1"></i>