From 1a0491f2462d2c309bd8e310b22c11019a79ce1e Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Mon, 20 Mar 2017 16:02:14 +0000
Subject: [PATCH] #3527 fix - Added applications forms and metadata component

---
 securis/src/main/webapp/src/app/forms/application.form.component.ts |   22 +++++++---------------
 1 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/securis/src/main/webapp/src/app/forms/application.form.component.ts b/securis/src/main/webapp/src/app/forms/application.form.component.ts
index baed64a..c9b4395 100644
--- a/securis/src/main/webapp/src/app/forms/application.form.component.ts
+++ b/securis/src/main/webapp/src/app/forms/application.form.component.ts
@@ -4,7 +4,7 @@
 import { ApplicationsService } from '../resources/applications';
 import { LicenseTypesService } from '../resources/license_types';
 import { LocaleService } from '../common/i18n';
-import { IPageChangeEvent } from '@covalent/core';
+import { TdDialogService } from '@covalent/core';
 import { Component, AfterViewInit } from '@angular/core';
 import { TdMediaService } from '@covalent/core';
 import { FormBase, IComboOption } from './base';
@@ -30,25 +30,15 @@
 })
 export class ApplicationFormComponent extends FormBase {
 
-  fields: any = {
-    'id': '',
-    'code': '',
-    'name': '',
-    'creation_timestamp': '',
-    'license_filename': '',
-    'description': '',
-    'metadata': '',
-    'key': '',
-    'value': '',
-  }
   constructor(private http: Http,
               private licenseTypes: LicenseTypesService,
               private router: Router,
               private applications: ApplicationsService,
               toaster: ToastsManager,
               route: ActivatedRoute,              
-              $L: LocaleService) {
-    super($L, route, toaster, applications, $L.get('application'));
+              $L: LocaleService,
+              dialogs: TdDialogService) {
+    super($L, route, toaster, applications, $L.get('application'), dialogs);
   }
 
  
@@ -58,7 +48,9 @@
 
  
   ngAfterViewInit(): void {
-    super.prepareData('applicationId');
+    super.prepareInitialData('applicationId', {
+      metadata: []
+    });
   }
 }
 

--
Gitblit v1.3.2