summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard
diff options
context:
space:
mode:
authorShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-05-10 11:58:15 +0200
committerShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-05-10 11:58:15 +0200
commitba830e1aaf8e65550e54c46346ba3d7553daa1ce (patch)
tree37aa72e9ace67e4bb0b006821fd398368cdee33e /cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard
parent7dee8dfd6cd0aa55491e4b5f8487d1731bed9a29 (diff)
fix pagination and create package feature
Issue-ID: CCSDK-2320 Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com> Change-Id: I8f86cf37ec31d9ee369d8514b7a7e074047d9f34
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts
index 49f91316b..c242b7e72 100644
--- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts
+++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts
@@ -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;
});
}