Skip to content

Commit

Permalink
frontend: fix viewchild
Browse files Browse the repository at this point in the history
  • Loading branch information
BennieMeng committed Aug 28, 2019
1 parent c75f5b5 commit 660098d
Show file tree
Hide file tree
Showing 52 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class CreateEditApiKeyComponent implements OnInit {
modalOpened: boolean;

apiKeyForm: NgForm;
@ViewChild('apiKeyForm', { static: false })
@ViewChild('apiKeyForm', { static: true })
currentForm: NgForm;

apiKey = new ApiKey();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class CreateEditAppComponent implements OnInit {
createAppOpened: boolean;

appForm: NgForm;
@ViewChild('appForm', { static: false })
@ViewChild('appForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { AceEditorBoxComponent } from '../../../shared/ace-editor/ace-editor-box
export class CreateEditClusterComponent {
@Output() create = new EventEmitter<boolean>();
modalOpened: boolean;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

@ViewChild('metaData', { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class CreateEditConfigComponent {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

config: Config = new Config();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CreateEditConfigMapComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class CreateEditConfigMapTplComponent implements OnInit {
@Output() create = new EventEmitter<boolean>();
modalOpened: boolean;
ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

configMapTpl: ConfigMapTpl = new ConfigMapTpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CreateEditCronjobComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditCronjobTplComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

cronjobTpl: CronjobTpl = new CronjobTpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CreateEditDaemonsetComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditDaemonsettplComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

daemonsetTpl: DaemonSetTemplate = new DaemonSetTemplate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditDeploymentComponent implements OnInit {
createDeploymentOpened: boolean;

deploymentForm: NgForm;
@ViewChild('deploymentForm', { static: false })
@ViewChild('deploymentForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditDeploymentTplComponent implements OnInit {
createDeploymentTplOpened: boolean;

deploymentTplForm: NgForm;
@ViewChild('deploymentTplForm', { static: false })
@ViewChild('deploymentTplForm', { static: true })
currentForm: NgForm;

deploymentTpl: DeploymentTpl = new DeploymentTpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class CreateEditGroupComponent implements OnInit {
createGroupOpened: boolean;

groupForm: NgForm;
@ViewChild('groupForm', { static: false })
@ViewChild('groupForm', { static: true })
currentForm: NgForm;

group: Group = new Group();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class CreateEditIngressComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditIngressTplComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

ingressTpl: IngressTpl = new IngressTpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class CreateEditNamespaceComponent {
aceBox: any;

namespaceForm: NgForm;
@ViewChild('namespaceForm', { static: false })
@ViewChild('namespaceForm', { static: true })
currentForm: NgForm;
ns: Namespace = new Namespace();
checkOnGoing = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class CreateEditPermissionComponent {
createPermissionOpened: boolean;

permissionForm: NgForm;
@ViewChild('permissionForm', { static: false })
@ViewChild('permissionForm', { static: true })
currentForm: NgForm;

componentName = '操作权限';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CreateEditPersistentVolumeClaimComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditPersistentVolumeClaimTplComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

pvcTpl: PersistentVolumeClaimTpl = new PersistentVolumeClaimTpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CreateEditSecretComponent implements OnInit {
createSecretOpened: boolean;

secretForm: NgForm;
@ViewChild('secretForm', { static: false })
@ViewChild('secretForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class CreateEditSecretTplComponent implements OnInit {
createSecrettplOpened: boolean;

secrettplForm: NgForm;
@ViewChild('secrettplForm', { static: false })
@ViewChild('secrettplForm', { static: true })
currentForm: NgForm;

secrettpl: SecretTpl = new SecretTpl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditStatefulsetComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

@ViewChild(AceEditorBoxComponent, { static: false })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditStatefulsettplComponent implements OnInit {
modalOpened: boolean;

ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

statefulsetTpl: StatefulsetTemplate = new StatefulsetTemplate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class CreateEditUserComponent {
createUserOpened: boolean;

userForm: NgForm;
@ViewChild('userForm', { static: false })
@ViewChild('userForm', { static: true })
currentForm: NgForm;

user: User = new User();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { UserService } from '../../../shared/client/v1/user.service';
export class ResetPasswordComponent {
opened: boolean;
userForm: NgForm;
@ViewChild('passForm', { static: false })
@ViewChild('passForm', { static: true })
currentForm: NgForm;

user: User = new User();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class CreateEditApiKeyComponent implements OnInit {
modalOpened: boolean;

apiKeyForm: NgForm;
@ViewChild('apiKeyForm', { static: false })
@ViewChild('apiKeyForm', { static: true })
currentForm: NgForm;

apiKey = new ApiKey();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CreateEditAppUserComponent implements OnInit {
createAppUserOpened: boolean;

appUserForm: NgForm;
@ViewChild('appUserForm', { static: false })
@ViewChild('appUserForm', { static: true })
currentForm: NgForm;

appUser: AppUser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class CreateEditAppWebHookComponent implements OnInit {
@Output() create = new EventEmitter<boolean>();
@Output() update = new EventEmitter<boolean>();

@ViewChild('webHookForm', { static: false })
@ViewChild('webHookForm', { static: true })
currentForm: NgForm;

webHook: WebHook;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class CreateEditAppComponent {
createAppOpened: boolean;

appForm: NgForm;
@ViewChild('appForm', { static: false })
@ViewChild('appForm', { static: true })
currentForm: NgForm;

app: App = new App();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class PublishConfigMapTplComponent {
@Output() published = new EventEmitter<boolean>();
modalOpened = false;
publishForm: NgForm;
@ViewChild('publishForm', { static: false })
@ViewChild('publishForm', { static: true })
currentForm: NgForm;

configMapTpl: ConfigMapTpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { CronjobTemplateDom, CronjobContainerDom, ContainerTpl } from '../../../
})
export class CreateEditCronjobTplComponent extends ContainerTpl implements OnInit, AfterViewInit, OnDestroy {
ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

actionType: ActionType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class PublishCronjobTplComponent {
@Output() published = new EventEmitter<boolean>();
modalOpened = false;
publishForm: NgForm;
@ViewChild('publishForm', { static: false })
@ViewChild('publishForm', { static: true })
currentForm: NgForm;

cronjob: Cronjob;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { containerDom, ContainerTpl, templateDom } from '../../../shared/base/co
})
export class CreateEditDaemonSetTplComponent extends ContainerTpl implements OnInit, AfterViewInit, OnDestroy {
ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

actionType: ActionType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class PublishDaemonSetTplComponent {
@Output() published = new EventEmitter<boolean>();
modalOpened = false;
publishForm: NgForm;
@ViewChild('publishForm', { static: false })
@ViewChild('publishForm', { static: true })
currentForm: NgForm;

daemonSet: DaemonSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import { containerDom, ContainerTpl, templateDom } from '../../../shared/base/co

export class CreateEditDeploymentTplComponent extends ContainerTpl implements OnInit, AfterViewInit, OnDestroy {
ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

actionType: ActionType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class PublishDeploymentTplComponent {
@Output() published = new EventEmitter<boolean>();
modalOpened = false;
publishForm: NgForm;
@ViewChild('publishForm', { static: false })
@ViewChild('publishForm', { static: true })
currentForm: NgForm;

deployment: Deployment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class CreateEditApiKeyComponent implements OnInit {
modalOpened: boolean;

apiKeyForm: NgForm;
@ViewChild('apiKeyForm', { static: false })
@ViewChild('apiKeyForm', { static: true })
currentForm: NgForm;

apiKey = new ApiKey();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class CreateEditNamespaceUserComponent implements OnInit {
createNamespaceUserOpened: boolean;

namespaceUserForm: NgForm;
@ViewChild('namespaceUserForm', { static: false })
@ViewChild('namespaceUserForm', { static: true })
currentForm: NgForm;

namespaceUser: NamespaceUser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class CreateEditNamespaceWebHookComponent implements OnInit {
@Output() create = new EventEmitter<boolean>();
@Output() update = new EventEmitter<boolean>();

@ViewChild('webHookForm', { static: false })
@ViewChild('webHookForm', { static: true })
currentForm: NgForm;

webHook: WebHook;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { PersistentVolumeClaimRobinClient } from '../../../shared/client/v1/kube
export class CreateSnapshotComponent {
createAppOpened: boolean;
snapForm: NgForm;
@ViewChild('snapForm', { static: false })
@ViewChild('snapForm', { static: true })
currentForm: NgForm;
@Input() appId: number;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class PublishPersistentVolumeClaimTplComponent {
@Output() published = new EventEmitter<boolean>();
modalOpened = false;
publishForm: NgForm;
@ViewChild('publishForm', { static: false })
@ViewChild('publishForm', { static: true })
currentForm: NgForm;

pvcTpl: PersistentVolumeClaimTpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class PublishSecretTplComponent {
@Output() published = new EventEmitter<boolean>();
modalOpened = false;
publishForm: NgForm;
@ViewChild('publishForm', { static: false })
@ViewChild('publishForm', { static: true })
currentForm: NgForm;

secretTpl: SecretTpl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import { containerDom, ContainerTpl, templateDom } from '../../../shared/base/co

export class CreateEditStatefulsettplComponent extends ContainerTpl implements OnInit, AfterViewInit, OnDestroy {
ngForm: NgForm;
@ViewChild('ngForm', { static: false })
@ViewChild('ngForm', { static: true })
currentForm: NgForm;

actionType: ActionType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class PublishStatefulsetTplComponent {
@Output() published = new EventEmitter<boolean>();
modalOpened = false;
publishForm: NgForm;
@ViewChild('publishForm', { static: false })
@ViewChild('publishForm', { static: true })
currentForm: NgForm;

statefulset: Statefulset;
Expand Down
Loading

0 comments on commit 660098d

Please sign in to comment.