From 660098d553991ec5c7a2f3a22961ce5c20c5d4d7 Mon Sep 17 00:00:00 2001 From: BennieMeng Date: Wed, 28 Aug 2019 14:49:38 +0800 Subject: [PATCH] frontend: fix viewchild --- src/frontend/lib | 2 +- .../apikey/create-edit-apikey/create-edit-apikey.component.ts | 2 +- .../app/admin/app/create-edit-app/create-edit-app.component.ts | 2 +- .../create-edit-cluster/create-edit-cluster.component.ts | 2 +- .../config/create-edit-config/create-edit-config.component.ts | 2 +- .../create-edit-configmap/create-edit-configmap.component.ts | 2 +- .../create-edit-configmaptpl.component.ts | 2 +- .../create-edit-cronjob/create-edit-cronjob.component.ts | 2 +- .../create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts | 2 +- .../create-edit-daemonset/create-edit-daemonset.component.ts | 2 +- .../create-edit-daemonsettpl.component.ts | 2 +- .../create-edit-deployment/create-edit-deployment.component.ts | 2 +- .../create-edit-deploymenttpl.component.ts | 2 +- .../group/create-edit-group/create-edit-group.component.ts | 2 +- .../create-edit-ingress/create-edit-ingress.component.ts | 2 +- .../create-edit-ingresstpl/create-edit-ingresstpl.component.ts | 2 +- .../create-edit-namespace/create-edit-namespace.component.ts | 2 +- .../create-edit-permission/create-edit-permission.component.ts | 2 +- .../create-edit-persistentvolumeclaim.component.ts | 2 +- .../create-edit-persistentvolumeclaimtpl.component.ts | 2 +- .../secret/create-edit-secret/create-edit-secret.component.ts | 2 +- .../create-edit-secrettpl/create-edit-secrettpl.component.ts | 2 +- .../create-edit-statefulset.component.ts | 2 +- .../create-edit-statefulsettpl.component.ts | 2 +- .../admin/user/create-edit-user/create-edit-user.component.ts | 2 +- .../app/admin/user/reset-password/reset-password.component.ts | 2 +- .../create-edit-apikey/create-edit-apikey.component.ts | 2 +- .../create-edit-app-user/create-edit-app-user.component.ts | 2 +- .../create-edit-app-webhook.component.ts | 2 +- .../app/portal/app/create-edit-app/create-edit-app.component.ts | 2 +- .../app/portal/configmap/publish-tpl/publish-tpl.component.ts | 2 +- .../create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts | 2 +- .../src/app/portal/cronjob/publish-tpl/publish-tpl.component.ts | 2 +- .../create-edit-daemonsettpl.component.ts | 2 +- .../app/portal/daemonset/publish-tpl/publish-tpl.component.ts | 2 +- .../create-edit-deploymenttpl.component.ts | 2 +- .../app/portal/deployment/publish-tpl/publish-tpl.component.ts | 2 +- .../create-edit-apikey/create-edit-apikey.component.ts | 2 +- .../create-edit-namespace-user.component.ts | 2 +- .../create-edit-namespace-webhook.component.ts | 2 +- .../create-snapshot/create-snapshot.component.ts | 2 +- .../persistentvolumeclaim/publish-tpl/publish-tpl.component.ts | 2 +- .../src/app/portal/secret/publish-tpl/publish-tpl.component.ts | 2 +- .../create-edit-statefulsettpl.component.ts | 2 +- .../app/portal/statefulset/publish-tpl/publish-tpl.component.ts | 2 +- .../src/app/shared/auth-module/sign-in/sign-in.component.ts | 2 +- .../shared/base/admin-resource/create-edit-resource-template.ts | 2 +- .../src/app/shared/base/admin-resource/create-edit-resource.ts | 2 +- .../app/shared/base/kubernetes-namespaced/migration-resource.ts | 2 +- .../app/shared/base/resource/create-edit-resource-template.ts | 2 +- .../src/app/shared/base/resource/create-edit-resource.ts | 2 +- src/frontend/src/app/shared/base/resource/publish-template.ts | 2 +- 52 files changed, 52 insertions(+), 52 deletions(-) diff --git a/src/frontend/lib b/src/frontend/lib index 4b462977b..22d21dc95 160000 --- a/src/frontend/lib +++ b/src/frontend/lib @@ -1 +1 @@ -Subproject commit 4b462977bdf60dbb396180d2beca105dfb3b82aa +Subproject commit 22d21dc9565280606b4a8fd577976e53553f5158 diff --git a/src/frontend/src/app/admin/apikey/create-edit-apikey/create-edit-apikey.component.ts b/src/frontend/src/app/admin/apikey/create-edit-apikey/create-edit-apikey.component.ts index 54e9ee3a2..89b847b5c 100644 --- a/src/frontend/src/app/admin/apikey/create-edit-apikey/create-edit-apikey.component.ts +++ b/src/frontend/src/app/admin/apikey/create-edit-apikey/create-edit-apikey.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/app/create-edit-app/create-edit-app.component.ts b/src/frontend/src/app/admin/app/create-edit-app/create-edit-app.component.ts index b938bcf3f..d8979d216 100644 --- a/src/frontend/src/app/admin/app/create-edit-app/create-edit-app.component.ts +++ b/src/frontend/src/app/admin/app/create-edit-app/create-edit-app.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/cluster/create-edit-cluster/create-edit-cluster.component.ts b/src/frontend/src/app/admin/cluster/create-edit-cluster/create-edit-cluster.component.ts index 307e7ecef..82ae88ad8 100644 --- a/src/frontend/src/app/admin/cluster/create-edit-cluster/create-edit-cluster.component.ts +++ b/src/frontend/src/app/admin/cluster/create-edit-cluster/create-edit-cluster.component.ts @@ -17,7 +17,7 @@ import { AceEditorBoxComponent } from '../../../shared/ace-editor/ace-editor-box export class CreateEditClusterComponent { @Output() create = new EventEmitter(); modalOpened: boolean; - @ViewChild('ngForm', { static: false }) + @ViewChild('ngForm', { static: true }) currentForm: NgForm; @ViewChild('metaData', { static: false }) diff --git a/src/frontend/src/app/admin/config/create-edit-config/create-edit-config.component.ts b/src/frontend/src/app/admin/config/create-edit-config/create-edit-config.component.ts index b1ac9c209..631917b59 100644 --- a/src/frontend/src/app/admin/config/create-edit-config/create-edit-config.component.ts +++ b/src/frontend/src/app/admin/config/create-edit-config/create-edit-config.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/configmap/create-edit-configmap/create-edit-configmap.component.ts b/src/frontend/src/app/admin/configmap/create-edit-configmap/create-edit-configmap.component.ts index 942b9fb17..7a45c36e3 100644 --- a/src/frontend/src/app/admin/configmap/create-edit-configmap/create-edit-configmap.component.ts +++ b/src/frontend/src/app/admin/configmap/create-edit-configmap/create-edit-configmap.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/configmaptpl/create-edit-configmaptpl/create-edit-configmaptpl.component.ts b/src/frontend/src/app/admin/configmaptpl/create-edit-configmaptpl/create-edit-configmaptpl.component.ts index 1db720a37..9114b7c58 100644 --- a/src/frontend/src/app/admin/configmaptpl/create-edit-configmaptpl/create-edit-configmaptpl.component.ts +++ b/src/frontend/src/app/admin/configmaptpl/create-edit-configmaptpl/create-edit-configmaptpl.component.ts @@ -22,7 +22,7 @@ export class CreateEditConfigMapTplComponent implements OnInit { @Output() create = new EventEmitter(); modalOpened: boolean; ngForm: NgForm; - @ViewChild('ngForm', { static: false }) + @ViewChild('ngForm', { static: true }) currentForm: NgForm; configMapTpl: ConfigMapTpl = new ConfigMapTpl(); diff --git a/src/frontend/src/app/admin/cronjob/create-edit-cronjob/create-edit-cronjob.component.ts b/src/frontend/src/app/admin/cronjob/create-edit-cronjob/create-edit-cronjob.component.ts index b9747e988..02133536e 100644 --- a/src/frontend/src/app/admin/cronjob/create-edit-cronjob/create-edit-cronjob.component.ts +++ b/src/frontend/src/app/admin/cronjob/create-edit-cronjob/create-edit-cronjob.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/cronjobtpl/create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts b/src/frontend/src/app/admin/cronjobtpl/create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts index e0d811b71..ec0892bc1 100644 --- a/src/frontend/src/app/admin/cronjobtpl/create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts +++ b/src/frontend/src/app/admin/cronjobtpl/create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/daemonset/create-edit-daemonset/create-edit-daemonset.component.ts b/src/frontend/src/app/admin/daemonset/create-edit-daemonset/create-edit-daemonset.component.ts index 988f7b676..3e3c48fb0 100644 --- a/src/frontend/src/app/admin/daemonset/create-edit-daemonset/create-edit-daemonset.component.ts +++ b/src/frontend/src/app/admin/daemonset/create-edit-daemonset/create-edit-daemonset.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/daemonsettpl/create-edit-daemonsettpl/create-edit-daemonsettpl.component.ts b/src/frontend/src/app/admin/daemonsettpl/create-edit-daemonsettpl/create-edit-daemonsettpl.component.ts index cc0bbdf7b..28c71a3c1 100644 --- a/src/frontend/src/app/admin/daemonsettpl/create-edit-daemonsettpl/create-edit-daemonsettpl.component.ts +++ b/src/frontend/src/app/admin/daemonsettpl/create-edit-daemonsettpl/create-edit-daemonsettpl.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/deployment/create-edit-deployment/create-edit-deployment.component.ts b/src/frontend/src/app/admin/deployment/create-edit-deployment/create-edit-deployment.component.ts index acc602e79..ae213a097 100644 --- a/src/frontend/src/app/admin/deployment/create-edit-deployment/create-edit-deployment.component.ts +++ b/src/frontend/src/app/admin/deployment/create-edit-deployment/create-edit-deployment.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/deploymenttpl/create-edit-deploymenttpl/create-edit-deploymenttpl.component.ts b/src/frontend/src/app/admin/deploymenttpl/create-edit-deploymenttpl/create-edit-deploymenttpl.component.ts index 940647c87..adc296692 100644 --- a/src/frontend/src/app/admin/deploymenttpl/create-edit-deploymenttpl/create-edit-deploymenttpl.component.ts +++ b/src/frontend/src/app/admin/deploymenttpl/create-edit-deploymenttpl/create-edit-deploymenttpl.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/group/create-edit-group/create-edit-group.component.ts b/src/frontend/src/app/admin/group/create-edit-group/create-edit-group.component.ts index 7f8241a38..29819336b 100644 --- a/src/frontend/src/app/admin/group/create-edit-group/create-edit-group.component.ts +++ b/src/frontend/src/app/admin/group/create-edit-group/create-edit-group.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/ingress/create-edit-ingress/create-edit-ingress.component.ts b/src/frontend/src/app/admin/ingress/create-edit-ingress/create-edit-ingress.component.ts index 48e909b28..b4d4ce1c0 100644 --- a/src/frontend/src/app/admin/ingress/create-edit-ingress/create-edit-ingress.component.ts +++ b/src/frontend/src/app/admin/ingress/create-edit-ingress/create-edit-ingress.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/ingresstpl/create-edit-ingresstpl/create-edit-ingresstpl.component.ts b/src/frontend/src/app/admin/ingresstpl/create-edit-ingresstpl/create-edit-ingresstpl.component.ts index 2f645ae19..4a69d08d8 100644 --- a/src/frontend/src/app/admin/ingresstpl/create-edit-ingresstpl/create-edit-ingresstpl.component.ts +++ b/src/frontend/src/app/admin/ingresstpl/create-edit-ingresstpl/create-edit-ingresstpl.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/namespace/create-edit-namespace/create-edit-namespace.component.ts b/src/frontend/src/app/admin/namespace/create-edit-namespace/create-edit-namespace.component.ts index 2d1cb59dc..2803ca218 100644 --- a/src/frontend/src/app/admin/namespace/create-edit-namespace/create-edit-namespace.component.ts +++ b/src/frontend/src/app/admin/namespace/create-edit-namespace/create-edit-namespace.component.ts @@ -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; diff --git a/src/frontend/src/app/admin/permission/create-edit-permission/create-edit-permission.component.ts b/src/frontend/src/app/admin/permission/create-edit-permission/create-edit-permission.component.ts index ca674f7fa..17aae628a 100644 --- a/src/frontend/src/app/admin/permission/create-edit-permission/create-edit-permission.component.ts +++ b/src/frontend/src/app/admin/permission/create-edit-permission/create-edit-permission.component.ts @@ -18,7 +18,7 @@ export class CreateEditPermissionComponent { createPermissionOpened: boolean; permissionForm: NgForm; - @ViewChild('permissionForm', { static: false }) + @ViewChild('permissionForm', { static: true }) currentForm: NgForm; componentName = '操作权限'; diff --git a/src/frontend/src/app/admin/persistentvolumeclaim/create-edit-persistentvolumeclaim/create-edit-persistentvolumeclaim.component.ts b/src/frontend/src/app/admin/persistentvolumeclaim/create-edit-persistentvolumeclaim/create-edit-persistentvolumeclaim.component.ts index 2a5766731..f79481ee9 100644 --- a/src/frontend/src/app/admin/persistentvolumeclaim/create-edit-persistentvolumeclaim/create-edit-persistentvolumeclaim.component.ts +++ b/src/frontend/src/app/admin/persistentvolumeclaim/create-edit-persistentvolumeclaim/create-edit-persistentvolumeclaim.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/persistentvolumeclaimtpl/create-edit-persistentvolumeclaimtpl/create-edit-persistentvolumeclaimtpl.component.ts b/src/frontend/src/app/admin/persistentvolumeclaimtpl/create-edit-persistentvolumeclaimtpl/create-edit-persistentvolumeclaimtpl.component.ts index e427e6322..bbd6a405b 100644 --- a/src/frontend/src/app/admin/persistentvolumeclaimtpl/create-edit-persistentvolumeclaimtpl/create-edit-persistentvolumeclaimtpl.component.ts +++ b/src/frontend/src/app/admin/persistentvolumeclaimtpl/create-edit-persistentvolumeclaimtpl/create-edit-persistentvolumeclaimtpl.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/secret/create-edit-secret/create-edit-secret.component.ts b/src/frontend/src/app/admin/secret/create-edit-secret/create-edit-secret.component.ts index 8c3d06172..0824cce82 100644 --- a/src/frontend/src/app/admin/secret/create-edit-secret/create-edit-secret.component.ts +++ b/src/frontend/src/app/admin/secret/create-edit-secret/create-edit-secret.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/secrettpl/create-edit-secrettpl/create-edit-secrettpl.component.ts b/src/frontend/src/app/admin/secrettpl/create-edit-secrettpl/create-edit-secrettpl.component.ts index 0f4476188..2b6a7893b 100644 --- a/src/frontend/src/app/admin/secrettpl/create-edit-secrettpl/create-edit-secrettpl.component.ts +++ b/src/frontend/src/app/admin/secrettpl/create-edit-secrettpl/create-edit-secrettpl.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/statefulset/create-edit-statefulset/create-edit-statefulset.component.ts b/src/frontend/src/app/admin/statefulset/create-edit-statefulset/create-edit-statefulset.component.ts index 2e8774db4..f51bb21d2 100644 --- a/src/frontend/src/app/admin/statefulset/create-edit-statefulset/create-edit-statefulset.component.ts +++ b/src/frontend/src/app/admin/statefulset/create-edit-statefulset/create-edit-statefulset.component.ts @@ -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 }) diff --git a/src/frontend/src/app/admin/statefulsettpl/create-edit-statefulsettpl/create-edit-statefulsettpl.component.ts b/src/frontend/src/app/admin/statefulsettpl/create-edit-statefulsettpl/create-edit-statefulsettpl.component.ts index b7d6e722a..b060f7ba9 100644 --- a/src/frontend/src/app/admin/statefulsettpl/create-edit-statefulsettpl/create-edit-statefulsettpl.component.ts +++ b/src/frontend/src/app/admin/statefulsettpl/create-edit-statefulsettpl/create-edit-statefulsettpl.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/user/create-edit-user/create-edit-user.component.ts b/src/frontend/src/app/admin/user/create-edit-user/create-edit-user.component.ts index cb1b2e149..ed08a7eff 100644 --- a/src/frontend/src/app/admin/user/create-edit-user/create-edit-user.component.ts +++ b/src/frontend/src/app/admin/user/create-edit-user/create-edit-user.component.ts @@ -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(); diff --git a/src/frontend/src/app/admin/user/reset-password/reset-password.component.ts b/src/frontend/src/app/admin/user/reset-password/reset-password.component.ts index 26c0a09fc..a99d06345 100644 --- a/src/frontend/src/app/admin/user/reset-password/reset-password.component.ts +++ b/src/frontend/src/app/admin/user/reset-password/reset-password.component.ts @@ -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(); diff --git a/src/frontend/src/app/portal/app-apikey/create-edit-apikey/create-edit-apikey.component.ts b/src/frontend/src/app/portal/app-apikey/create-edit-apikey/create-edit-apikey.component.ts index 80edcf91f..d864a7401 100644 --- a/src/frontend/src/app/portal/app-apikey/create-edit-apikey/create-edit-apikey.component.ts +++ b/src/frontend/src/app/portal/app-apikey/create-edit-apikey/create-edit-apikey.component.ts @@ -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(); diff --git a/src/frontend/src/app/portal/app-user/create-edit-app-user/create-edit-app-user.component.ts b/src/frontend/src/app/portal/app-user/create-edit-app-user/create-edit-app-user.component.ts index cca18a2c9..6e47c1493 100644 --- a/src/frontend/src/app/portal/app-user/create-edit-app-user/create-edit-app-user.component.ts +++ b/src/frontend/src/app/portal/app-user/create-edit-app-user/create-edit-app-user.component.ts @@ -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; diff --git a/src/frontend/src/app/portal/app-webhook/create-edit-app-webhook/create-edit-app-webhook.component.ts b/src/frontend/src/app/portal/app-webhook/create-edit-app-webhook/create-edit-app-webhook.component.ts index 59f98db06..3908dd5e0 100644 --- a/src/frontend/src/app/portal/app-webhook/create-edit-app-webhook/create-edit-app-webhook.component.ts +++ b/src/frontend/src/app/portal/app-webhook/create-edit-app-webhook/create-edit-app-webhook.component.ts @@ -18,7 +18,7 @@ export class CreateEditAppWebHookComponent implements OnInit { @Output() create = new EventEmitter(); @Output() update = new EventEmitter(); - @ViewChild('webHookForm', { static: false }) + @ViewChild('webHookForm', { static: true }) currentForm: NgForm; webHook: WebHook; diff --git a/src/frontend/src/app/portal/app/create-edit-app/create-edit-app.component.ts b/src/frontend/src/app/portal/app/create-edit-app/create-edit-app.component.ts index 4ead49555..1b8e2c594 100644 --- a/src/frontend/src/app/portal/app/create-edit-app/create-edit-app.component.ts +++ b/src/frontend/src/app/portal/app/create-edit-app/create-edit-app.component.ts @@ -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(); diff --git a/src/frontend/src/app/portal/configmap/publish-tpl/publish-tpl.component.ts b/src/frontend/src/app/portal/configmap/publish-tpl/publish-tpl.component.ts index 96f8381ba..02aa7b0be 100644 --- a/src/frontend/src/app/portal/configmap/publish-tpl/publish-tpl.component.ts +++ b/src/frontend/src/app/portal/configmap/publish-tpl/publish-tpl.component.ts @@ -24,7 +24,7 @@ export class PublishConfigMapTplComponent { @Output() published = new EventEmitter(); modalOpened = false; publishForm: NgForm; - @ViewChild('publishForm', { static: false }) + @ViewChild('publishForm', { static: true }) currentForm: NgForm; configMapTpl: ConfigMapTpl; diff --git a/src/frontend/src/app/portal/cronjob/create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts b/src/frontend/src/app/portal/cronjob/create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts index 64e95424f..0bfa7d7d3 100644 --- a/src/frontend/src/app/portal/cronjob/create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts +++ b/src/frontend/src/app/portal/cronjob/create-edit-cronjobtpl/create-edit-cronjobtpl.component.ts @@ -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; diff --git a/src/frontend/src/app/portal/cronjob/publish-tpl/publish-tpl.component.ts b/src/frontend/src/app/portal/cronjob/publish-tpl/publish-tpl.component.ts index 48ad62591..7c6e401ff 100644 --- a/src/frontend/src/app/portal/cronjob/publish-tpl/publish-tpl.component.ts +++ b/src/frontend/src/app/portal/cronjob/publish-tpl/publish-tpl.component.ts @@ -23,7 +23,7 @@ export class PublishCronjobTplComponent { @Output() published = new EventEmitter(); modalOpened = false; publishForm: NgForm; - @ViewChild('publishForm', { static: false }) + @ViewChild('publishForm', { static: true }) currentForm: NgForm; cronjob: Cronjob; diff --git a/src/frontend/src/app/portal/daemonset/create-edit-daemonsettpl/create-edit-daemonsettpl.component.ts b/src/frontend/src/app/portal/daemonset/create-edit-daemonsettpl/create-edit-daemonsettpl.component.ts index 03deae22d..3df316bac 100644 --- a/src/frontend/src/app/portal/daemonset/create-edit-daemonsettpl/create-edit-daemonsettpl.component.ts +++ b/src/frontend/src/app/portal/daemonset/create-edit-daemonsettpl/create-edit-daemonsettpl.component.ts @@ -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; diff --git a/src/frontend/src/app/portal/daemonset/publish-tpl/publish-tpl.component.ts b/src/frontend/src/app/portal/daemonset/publish-tpl/publish-tpl.component.ts index 51b7618fd..266db4ef8 100644 --- a/src/frontend/src/app/portal/daemonset/publish-tpl/publish-tpl.component.ts +++ b/src/frontend/src/app/portal/daemonset/publish-tpl/publish-tpl.component.ts @@ -25,7 +25,7 @@ export class PublishDaemonSetTplComponent { @Output() published = new EventEmitter(); modalOpened = false; publishForm: NgForm; - @ViewChild('publishForm', { static: false }) + @ViewChild('publishForm', { static: true }) currentForm: NgForm; daemonSet: DaemonSet; diff --git a/src/frontend/src/app/portal/deployment/create-edit-deploymenttpl/create-edit-deploymenttpl.component.ts b/src/frontend/src/app/portal/deployment/create-edit-deploymenttpl/create-edit-deploymenttpl.component.ts index 3ebbe23d8..ec69a675f 100644 --- a/src/frontend/src/app/portal/deployment/create-edit-deploymenttpl/create-edit-deploymenttpl.component.ts +++ b/src/frontend/src/app/portal/deployment/create-edit-deploymenttpl/create-edit-deploymenttpl.component.ts @@ -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; diff --git a/src/frontend/src/app/portal/deployment/publish-tpl/publish-tpl.component.ts b/src/frontend/src/app/portal/deployment/publish-tpl/publish-tpl.component.ts index 3422a361c..890b3ad03 100644 --- a/src/frontend/src/app/portal/deployment/publish-tpl/publish-tpl.component.ts +++ b/src/frontend/src/app/portal/deployment/publish-tpl/publish-tpl.component.ts @@ -23,7 +23,7 @@ export class PublishDeploymentTplComponent { @Output() published = new EventEmitter(); modalOpened = false; publishForm: NgForm; - @ViewChild('publishForm', { static: false }) + @ViewChild('publishForm', { static: true }) currentForm: NgForm; deployment: Deployment; diff --git a/src/frontend/src/app/portal/namespace-apikey/create-edit-apikey/create-edit-apikey.component.ts b/src/frontend/src/app/portal/namespace-apikey/create-edit-apikey/create-edit-apikey.component.ts index f15563063..ff55f5be5 100644 --- a/src/frontend/src/app/portal/namespace-apikey/create-edit-apikey/create-edit-apikey.component.ts +++ b/src/frontend/src/app/portal/namespace-apikey/create-edit-apikey/create-edit-apikey.component.ts @@ -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(); diff --git a/src/frontend/src/app/portal/namespace-user/create-edit-namespace-user/create-edit-namespace-user.component.ts b/src/frontend/src/app/portal/namespace-user/create-edit-namespace-user/create-edit-namespace-user.component.ts index 603ad98aa..5101b4354 100644 --- a/src/frontend/src/app/portal/namespace-user/create-edit-namespace-user/create-edit-namespace-user.component.ts +++ b/src/frontend/src/app/portal/namespace-user/create-edit-namespace-user/create-edit-namespace-user.component.ts @@ -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; diff --git a/src/frontend/src/app/portal/namespace-webhook/create-edit-namespace-webhook/create-edit-namespace-webhook.component.ts b/src/frontend/src/app/portal/namespace-webhook/create-edit-namespace-webhook/create-edit-namespace-webhook.component.ts index db447ea10..bc083bdef 100644 --- a/src/frontend/src/app/portal/namespace-webhook/create-edit-namespace-webhook/create-edit-namespace-webhook.component.ts +++ b/src/frontend/src/app/portal/namespace-webhook/create-edit-namespace-webhook/create-edit-namespace-webhook.component.ts @@ -18,7 +18,7 @@ export class CreateEditNamespaceWebHookComponent implements OnInit { @Output() create = new EventEmitter(); @Output() update = new EventEmitter(); - @ViewChild('webHookForm', { static: false }) + @ViewChild('webHookForm', { static: true }) currentForm: NgForm; webHook: WebHook; diff --git a/src/frontend/src/app/portal/persistentvolumeclaim/create-snapshot/create-snapshot.component.ts b/src/frontend/src/app/portal/persistentvolumeclaim/create-snapshot/create-snapshot.component.ts index 355bba8a3..5844cbd6f 100644 --- a/src/frontend/src/app/portal/persistentvolumeclaim/create-snapshot/create-snapshot.component.ts +++ b/src/frontend/src/app/portal/persistentvolumeclaim/create-snapshot/create-snapshot.component.ts @@ -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; diff --git a/src/frontend/src/app/portal/persistentvolumeclaim/publish-tpl/publish-tpl.component.ts b/src/frontend/src/app/portal/persistentvolumeclaim/publish-tpl/publish-tpl.component.ts index 5cc9555c7..3d84c6e80 100644 --- a/src/frontend/src/app/portal/persistentvolumeclaim/publish-tpl/publish-tpl.component.ts +++ b/src/frontend/src/app/portal/persistentvolumeclaim/publish-tpl/publish-tpl.component.ts @@ -22,7 +22,7 @@ export class PublishPersistentVolumeClaimTplComponent { @Output() published = new EventEmitter(); modalOpened = false; publishForm: NgForm; - @ViewChild('publishForm', { static: false }) + @ViewChild('publishForm', { static: true }) currentForm: NgForm; pvcTpl: PersistentVolumeClaimTpl; diff --git a/src/frontend/src/app/portal/secret/publish-tpl/publish-tpl.component.ts b/src/frontend/src/app/portal/secret/publish-tpl/publish-tpl.component.ts index d0eee6689..ba11fbbfc 100644 --- a/src/frontend/src/app/portal/secret/publish-tpl/publish-tpl.component.ts +++ b/src/frontend/src/app/portal/secret/publish-tpl/publish-tpl.component.ts @@ -24,7 +24,7 @@ export class PublishSecretTplComponent { @Output() published = new EventEmitter(); modalOpened = false; publishForm: NgForm; - @ViewChild('publishForm', { static: false }) + @ViewChild('publishForm', { static: true }) currentForm: NgForm; secretTpl: SecretTpl; diff --git a/src/frontend/src/app/portal/statefulset/create-edit-statefulsettpl/create-edit-statefulsettpl.component.ts b/src/frontend/src/app/portal/statefulset/create-edit-statefulsettpl/create-edit-statefulsettpl.component.ts index 351d8d567..e96975fd4 100644 --- a/src/frontend/src/app/portal/statefulset/create-edit-statefulsettpl/create-edit-statefulsettpl.component.ts +++ b/src/frontend/src/app/portal/statefulset/create-edit-statefulsettpl/create-edit-statefulsettpl.component.ts @@ -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; diff --git a/src/frontend/src/app/portal/statefulset/publish-tpl/publish-tpl.component.ts b/src/frontend/src/app/portal/statefulset/publish-tpl/publish-tpl.component.ts index 9e24089fc..4edc2f094 100644 --- a/src/frontend/src/app/portal/statefulset/publish-tpl/publish-tpl.component.ts +++ b/src/frontend/src/app/portal/statefulset/publish-tpl/publish-tpl.component.ts @@ -26,7 +26,7 @@ export class PublishStatefulsetTplComponent { @Output() published = new EventEmitter(); modalOpened = false; publishForm: NgForm; - @ViewChild('publishForm', { static: false }) + @ViewChild('publishForm', { static: true }) currentForm: NgForm; statefulset: Statefulset; diff --git a/src/frontend/src/app/shared/auth-module/sign-in/sign-in.component.ts b/src/frontend/src/app/shared/auth-module/sign-in/sign-in.component.ts index 1462cacea..e0dcd5bd8 100644 --- a/src/frontend/src/app/shared/auth-module/sign-in/sign-in.component.ts +++ b/src/frontend/src/app/shared/auth-module/sign-in/sign-in.component.ts @@ -18,7 +18,7 @@ export class SignInComponent implements OnInit { password: string; isSubmitOnGoing: boolean; ngForm: NgForm; - @ViewChild('ngForm', { static: false }) + @ViewChild('ngForm', { static: true }) currentForm: NgForm; constructor(private authoriseService: AuthoriseService, diff --git a/src/frontend/src/app/shared/base/admin-resource/create-edit-resource-template.ts b/src/frontend/src/app/shared/base/admin-resource/create-edit-resource-template.ts index 6c6702ec7..3a89045e7 100644 --- a/src/frontend/src/app/shared/base/admin-resource/create-edit-resource-template.ts +++ b/src/frontend/src/app/shared/base/admin-resource/create-edit-resource-template.ts @@ -14,7 +14,7 @@ export class CreateEditResourceTemplateComponent implements OnInit { modalOpened: boolean; ngForm: NgForm; - @ViewChild('ngForm', { static: false }) + @ViewChild('ngForm', { static: true }) currentForm: NgForm; // template: any = new IngressTpl(); diff --git a/src/frontend/src/app/shared/base/admin-resource/create-edit-resource.ts b/src/frontend/src/app/shared/base/admin-resource/create-edit-resource.ts index cb818cbd5..84283f91d 100644 --- a/src/frontend/src/app/shared/base/admin-resource/create-edit-resource.ts +++ b/src/frontend/src/app/shared/base/admin-resource/create-edit-resource.ts @@ -15,7 +15,7 @@ export class CreateEditResourceComponent implements OnInit { modalOpened: boolean; ngForm: NgForm; - @ViewChild('ngForm', { static: false }) + @ViewChild('ngForm', { static: true }) currentForm: NgForm; @ViewChild(AceEditorBoxComponent, { static: false }) diff --git a/src/frontend/src/app/shared/base/kubernetes-namespaced/migration-resource.ts b/src/frontend/src/app/shared/base/kubernetes-namespaced/migration-resource.ts index 6b7212235..a5375b574 100644 --- a/src/frontend/src/app/shared/base/kubernetes-namespaced/migration-resource.ts +++ b/src/frontend/src/app/shared/base/kubernetes-namespaced/migration-resource.ts @@ -14,7 +14,7 @@ export class MigrationResource implements OnInit { modalOpened: boolean; kubeResource: KubeResourcesName; - @ViewChild('ngForm', { static: false }) + @ViewChild('ngForm', { static: true }) currentForm: NgForm; @ViewChild(AceEditorBoxComponent, { static: false }) diff --git a/src/frontend/src/app/shared/base/resource/create-edit-resource-template.ts b/src/frontend/src/app/shared/base/resource/create-edit-resource-template.ts index 7422f0870..5535614d1 100644 --- a/src/frontend/src/app/shared/base/resource/create-edit-resource-template.ts +++ b/src/frontend/src/app/shared/base/resource/create-edit-resource-template.ts @@ -15,7 +15,7 @@ import { ObjectMeta } from '../../model/v1/kubernetes/base'; export class CreateEditResourceTemplate { ngForm: NgForm; - @ViewChild('ngForm', { static: false }) + @ViewChild('ngForm', { static: true }) currentForm: NgForm; diff --git a/src/frontend/src/app/shared/base/resource/create-edit-resource.ts b/src/frontend/src/app/shared/base/resource/create-edit-resource.ts index ed85638b8..a1756ea95 100644 --- a/src/frontend/src/app/shared/base/resource/create-edit-resource.ts +++ b/src/frontend/src/app/shared/base/resource/create-edit-resource.ts @@ -9,7 +9,7 @@ import { ApiNameGenerateRule } from '../../utils'; import { Resources } from '../../model/v1/resources-limit'; export class CreateEditResource { - @ViewChild('ngForm', { static: false }) + @ViewChild('ngForm', { static: true }) currentForm: NgForm; clusters: Cluster[]; resourcesMetas = new Resources(); diff --git a/src/frontend/src/app/shared/base/resource/publish-template.ts b/src/frontend/src/app/shared/base/resource/publish-template.ts index b3213374e..d8eca96d9 100644 --- a/src/frontend/src/app/shared/base/resource/publish-template.ts +++ b/src/frontend/src/app/shared/base/resource/publish-template.ts @@ -13,7 +13,7 @@ export class PublishTemplate { @Input() appId: number; modalOpened = false; publishForm: NgForm; - @ViewChild('publishForm', { static: false }) + @ViewChild('publishForm', { static: true }) currentForm: NgForm; clusters = Array(); template: any;