fix pagination and create package feature 20/107420/1
authorShaabanEltanany <shaaban.eltanany.ext@orange.com>
Sun, 10 May 2020 09:58:15 +0000 (11:58 +0200)
committerShaabanEltanany <shaaban.eltanany.ext@orange.com>
Sun, 10 May 2020 09:58:15 +0000 (11:58 +0200)
Issue-ID: CCSDK-2320
Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com>
Change-Id: I8f86cf37ec31d9ee369d8514b7a7e074047d9f34

cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation.component.html
cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts

index ee43687..baf6ea9 100644 (file)
@@ -20,7 +20,7 @@
         <div class="container-fluid body-container">
             <div class="container">
                 <div class="creat-action-container">
-                    <a href="#" class="action-button save" (click)="saveBluePrint()">
+                    <a class="action-button save" (click)="saveBluePrint()">
                         <i class="icon-save-sm" aria-hidden="true"></i>
                         <span>Save</span>
                     </a>
             </div>
         </div>
     </div>
-</div>
\ No newline at end of file
+</div>
index 49f9131..c242b7e 100644 (file)
@@ -1,6 +1,5 @@
-import {Component, OnInit, ChangeDetectionStrategy} from '@angular/core';
+import {Component, OnInit} from '@angular/core';
 import {PackagesStore} from '../../packages.store';
-import {map} from 'rxjs/operators';
 
 @Component({
     selector: 'app-package-pagination',
@@ -18,7 +17,7 @@ export class PackagePaginationComponent implements OnInit {
 
         this.packagesStore.state$
             .subscribe(state => {
-                this.pageNumber = state.currentPage;
+                this.pageNumber = state.currentPage + 1;
                 this.totalCount = state.totalPackages;
             });
     }