From 68bfeadaca5c3af78a9884614dfec7a188454a2f Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Wed, 15 Mar 2017 17:44:12 +0000
Subject: [PATCH] #3527 fix - Changes on lsting layout

---
 securis/src/main/webapp/src/app/pack.list.component.ts |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/securis/src/main/webapp/src/app/pack.list.component.ts b/securis/src/main/webapp/src/app/pack.list.component.ts
index 5c44a1d..e13800b 100644
--- a/securis/src/main/webapp/src/app/pack.list.component.ts
+++ b/securis/src/main/webapp/src/app/pack.list.component.ts
@@ -1,8 +1,14 @@
 import { Router, ActivatedRoute } from '@angular/router';
 import { MdDialog, MdDialogConfig } from '@angular/material';
-import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core';
+import {
+    ITdDataTableColumn,
+    ITdDataTableSortChangeEvent,
+    TdDataTableService,
+    TdDataTableSortingOrder,
+    TdPagingBarComponent
+} from '@covalent/core';
 import { IPageChangeEvent } from '@covalent/core';
-import { Component, AfterViewInit } from '@angular/core';
+import { Component, ViewChild, AfterViewInit } from '@angular/core';
 import { TdMediaService } from '@covalent/core';
 import { PacksService } from './resources/packs';
 import { PackFormComponent } from './forms/pack.form.component';
@@ -49,6 +55,9 @@
 })
 export class PackListComponent implements AfterViewInit {
   data: any[] = [];
+  
+  @ViewChild('pagingBar') pagingBar : TdPagingBarComponent ;
+
   columns: ITdDataTableColumn[] = [
     { name: 'code', label: 'Code', tooltip: 'License pack code' },
     { name: 'application_name', label: 'App name' },
@@ -133,6 +142,7 @@
     this.sortBy = sortEvent.name === 'used_licenses' ? 'num_available' : sortEvent.name;
     this.sortOrder = sortEvent.order;
     this.filter();
+    console.log(this.pagingBar);
   }
 
   search(searchTerm: string): void {

--
Gitblit v1.3.2