[web-app] 新增监控是否探测按钮默认false-避免新增容易超时

This commit is contained in:
tomsun28
2022-01-30 13:02:50 +08:00
parent d055446f98
commit bc646656e2

View File

@@ -22,7 +22,7 @@ export class MonitorNewComponent implements OnInit {
params!: Param[];
monitor!: Monitor;
profileForm: FormGroup = new FormGroup({});
detected: boolean = true;
detected: boolean = false;
passwordVisible: boolean = false;
// 是否显示加载中
isSpinning: boolean = false;
@@ -46,7 +46,7 @@ export class MonitorNewComponent implements OnInit {
switchMap((paramMap: ParamMap) => {
this.monitor.app = paramMap.get('app') || '';
this.titleSvc.setTitleByI18n(`monitor.app.${this.monitor.app}`);
this.detected = true;
this.detected = false;
this.passwordVisible = false;
this.isSpinning = false;
return this.appDefineSvc.getAppParamsDefine(this.monitor.app);
@@ -122,7 +122,7 @@ export class MonitorNewComponent implements OnInit {
}
});
let detectMonitor = {
detected: this.detected,
detected: true,
monitor: this.monitor,
params: this.params
};