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/license.list.component.ts | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/securis/src/main/webapp/src/app/license.list.component.ts b/securis/src/main/webapp/src/app/license.list.component.ts
index 2417192..2ffc546 100644
--- a/securis/src/main/webapp/src/app/license.list.component.ts
+++ b/securis/src/main/webapp/src/app/license.list.component.ts
@@ -1,12 +1,13 @@
import { LocaleService } from './common/i18n';
import { ActivatedRoute, Router } from '@angular/router';
import { MdDialog, MdDialogConfig } from '@angular/material';
-import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core';
+import { TdDataTableService, TdPagingBarComponent, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core';
import { IPageChangeEvent } from '@covalent/core';
-import { Component, AfterViewInit } from '@angular/core';
+import { Component, AfterViewInit, ViewChild } from '@angular/core';
import { TdMediaService } from '@covalent/core';
import { LicensesService } from './resources/licenses';
import { PacksService } from './resources/packs';
+import { Location } from '@angular/common';
import { LicenseFormComponent } from './forms/license.form.component';
@@ -37,6 +38,8 @@
})
export class LicenseListComponent implements AfterViewInit {
data: any[] = [];
+ @ViewChild('pagingBar') pagingBar : TdPagingBarComponent ;
+
pack: any = null;
columns: ITdDataTableColumn[] = [
{ name: 'code', label: 'Code', tooltip: 'License code' },
@@ -79,6 +82,7 @@
private media: TdMediaService,
private $L: LocaleService,
private router: Router,
+ private location: Location,
private route: ActivatedRoute,
private dialog: MdDialog,
private licenseForm: LicenseFormComponent,
@@ -105,6 +109,10 @@
});
}
+ goBack() : void {
+ this.location.back();
+ }
+
isLicenseExpired(lic: any): boolean {
return lic.expiration_date < (new Date().getTime());
}
--
Gitblit v1.3.2