From 470182be4f955a1c11d912743ce9e683ac4902a5 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Mon, 20 Mar 2017 17:06:12 +0000
Subject: [PATCH] #3527 feature - Added skeleton for all other admin catalogs: users, orgs and lic types
---
securis/src/main/webapp/src/app/forms/application.form.component.ts | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 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 c9b4395..bda6dac 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
@@ -5,7 +5,7 @@
import { LicenseTypesService } from '../resources/license_types';
import { LocaleService } from '../common/i18n';
import { TdDialogService } from '@covalent/core';
-import { Component, AfterViewInit } from '@angular/core';
+import { Component, AfterViewInit, ViewChild } from '@angular/core';
import { TdMediaService } from '@covalent/core';
import { FormBase, IComboOption } from './base';
import { ActivatedRoute, Router } from '@angular/router';
@@ -32,13 +32,13 @@
constructor(private http: Http,
private licenseTypes: LicenseTypesService,
- private router: Router,
private applications: ApplicationsService,
+ router: Router,
toaster: ToastsManager,
route: ActivatedRoute,
$L: LocaleService,
dialogs: TdDialogService) {
- super($L, route, toaster, applications, $L.get('application'), dialogs);
+ super($L, router, route, toaster, applications, $L.get('application'), dialogs);
}
@@ -46,11 +46,16 @@
this.router.navigate([`applications`]);
}
-
- ngAfterViewInit(): void {
+ init() : void {
+ super.setFirstFocus();
+ super.reset();
super.prepareInitialData('applicationId', {
metadata: []
});
}
+
+ ngAfterViewInit(): void {
+ this.init();
+ }
}
--
Gitblit v1.3.2