| .. | .. |
|---|
| 4 | 4 | import { ApplicationsService } from '../resources/applications'; |
|---|
| 5 | 5 | import { LicenseTypesService } from '../resources/license_types'; |
|---|
| 6 | 6 | import { LocaleService } from '../common/i18n'; |
|---|
| 7 | | -import { IPageChangeEvent } from '@covalent/core'; |
|---|
| 7 | +import { TdDialogService } from '@covalent/core'; |
|---|
| 8 | 8 | import { Component, AfterViewInit } from '@angular/core'; |
|---|
| 9 | 9 | import { TdMediaService } from '@covalent/core'; |
|---|
| 10 | 10 | import { FormBase, IComboOption } from './base'; |
|---|
| .. | .. |
|---|
| 30 | 30 | }) |
|---|
| 31 | 31 | export class ApplicationFormComponent extends FormBase { |
|---|
| 32 | 32 | |
|---|
| 33 | | - fields: any = { |
|---|
| 34 | | - 'id': '', |
|---|
| 35 | | - 'code': '', |
|---|
| 36 | | - 'name': '', |
|---|
| 37 | | - 'creation_timestamp': '', |
|---|
| 38 | | - 'license_filename': '', |
|---|
| 39 | | - 'description': '', |
|---|
| 40 | | - 'metadata': '', |
|---|
| 41 | | - 'key': '', |
|---|
| 42 | | - 'value': '', |
|---|
| 43 | | - } |
|---|
| 44 | 33 | constructor(private http: Http, |
|---|
| 45 | 34 | private licenseTypes: LicenseTypesService, |
|---|
| 46 | 35 | private router: Router, |
|---|
| 47 | 36 | private applications: ApplicationsService, |
|---|
| 48 | 37 | toaster: ToastsManager, |
|---|
| 49 | 38 | 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); |
|---|
| 52 | 42 | } |
|---|
| 53 | 43 | |
|---|
| 54 | 44 | |
|---|
| .. | .. |
|---|
| 58 | 48 | |
|---|
| 59 | 49 | |
|---|
| 60 | 50 | ngAfterViewInit(): void { |
|---|
| 61 | | - super.prepareData('applicationId'); |
|---|
| 51 | + super.prepareInitialData('applicationId', { |
|---|
| 52 | + metadata: [] |
|---|
| 53 | + }); |
|---|
| 62 | 54 | } |
|---|
| 63 | 55 | } |
|---|
| 64 | 56 | |
|---|