From ac8d1f0e8ab4bab6eb546daa8062a6dad3ab8e23 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Fri, 10 Mar 2017 11:28:36 +0000
Subject: [PATCH] #3527 fix - Fixed dialog data
---
securis/src/main/webapp/src/app/pack.list.component.ts | 9 ++++++++-
1 files changed, 8 insertions(+), 1 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 8b883a0..f63e72f 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,10 @@
+import { MdDialog } from '@angular/material';
import { TdDataTableService, TdDataTableSortingOrder, ITdDataTableSortChangeEvent, ITdDataTableColumn } from '@covalent/core';
import { IPageChangeEvent } from '@covalent/core';
import { Component, AfterViewInit } from '@angular/core';
import { TdMediaService } from '@covalent/core';
import { PacksService } from './resources/packs';
+import { PackFormComponent } from './forms/pack.form.component';
var pack_example = {
id: 7,
@@ -61,6 +63,8 @@
constructor(private _dataTableService: TdDataTableService,
private media: TdMediaService,
+ private dialog: MdDialog,
+ private packForm: PackFormComponent,
private packs: PacksService) {
this.packs.get().subscribe(
list => {
@@ -76,7 +80,10 @@
}
createPack() : void {
-
+ this.dialog.open(PackFormComponent, {
+ height: '50%', // can be px or %
+ width: '40%', // can be px or %
+ });
}
sort(sortEvent: ITdDataTableSortChangeEvent): void {
--
Gitblit v1.3.2