diff options
author | 2020-08-24 12:19:59 +0200 | |
---|---|---|
committer | 2020-08-24 18:07:17 +0000 | |
commit | 95ada73a261b82f31aecf4e23f4a87f464d806c5 (patch) | |
tree | deb72a8fadcf893d7641f14a96085928e09784aa /cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts | |
parent | d8717dfc2217fd641279d835c53bb5557b4384a7 (diff) |
Adding Pagination Loader
Issue-ID: CCSDK-2433
Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I335ee8fb72c51f303183108aa36887fa0b65cf62
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/packages-dashboard/package-pagination/package-pagination.component.ts | 11 |
1 files changed, 8 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 c242b7e72..4360062ad 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,5 +1,6 @@ -import {Component, OnInit} from '@angular/core'; -import {PackagesStore} from '../../packages.store'; +import { Component, OnInit } from '@angular/core'; +import { PackagesStore } from '../../packages.store'; +import { NgxUiLoaderService } from 'ngx-ui-loader'; @Component({ selector: 'app-package-pagination', @@ -12,7 +13,10 @@ export class PackagePaginationComponent implements OnInit { pageSize: number; previousPage: number; - constructor(private packagesStore: PackagesStore) { + constructor( + private packagesStore: PackagesStore, + private ngxLoader: NgxUiLoaderService + ) { this.pageSize = packagesStore.pageSize; this.packagesStore.state$ @@ -32,6 +36,7 @@ export class PackagePaginationComponent implements OnInit { console.log('page change to first...', page); } if (this.previousPage !== page) { + this.ngxLoader.start(); // start master loader this.packagesStore.getPage(page - 1, this.packagesStore.pageSize); this.previousPage = page; } |