rsanchez
2017-03-20 1a0491f2462d2c309bd8e310b22c11019a79ce1e
securis/src/main/webapp/src/app/forms/application.form.component.ts
....@@ -4,7 +4,7 @@
44 import { ApplicationsService } from '../resources/applications';
55 import { LicenseTypesService } from '../resources/license_types';
66 import { LocaleService } from '../common/i18n';
7
-import { IPageChangeEvent } from '@covalent/core';
7
+import { TdDialogService } from '@covalent/core';
88 import { Component, AfterViewInit } from '@angular/core';
99 import { TdMediaService } from '@covalent/core';
1010 import { FormBase, IComboOption } from './base';
....@@ -30,25 +30,15 @@
3030 })
3131 export class ApplicationFormComponent extends FormBase {
3232
33
- fields: any = {
34
- 'id': '',
35
- 'code': '',
36
- 'name': '',
37
- 'creation_timestamp': '',
38
- 'license_filename': '',
39
- 'description': '',
40
- 'metadata': '',
41
- 'key': '',
42
- 'value': '',
43
- }
4433 constructor(private http: Http,
4534 private licenseTypes: LicenseTypesService,
4635 private router: Router,
4736 private applications: ApplicationsService,
4837 toaster: ToastsManager,
4938 route: ActivatedRoute,
50
- $L: LocaleService) {
51
- super($L, route, toaster, applications, $L.get('application'));
39
+ $L: LocaleService,
40
+ dialogs: TdDialogService) {
41
+ super($L, route, toaster, applications, $L.get('application'), dialogs);
5242 }
5343
5444
....@@ -58,7 +48,9 @@
5848
5949
6050 ngAfterViewInit(): void {
61
- super.prepareData('applicationId');
51
+ super.prepareInitialData('applicationId', {
52
+ metadata: []
53
+ });
6254 }
6355 }
6456