Compare commits

...

2 Commits

Author SHA1 Message Date
882f04d893 set focus the new way 2023-03-13 19:41:42 +01:00
da4a95e5ed fill intervalUnit when editing plot 2023-03-13 19:39:00 +01:00
3 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
<div mat-dialog-content>
<mat-form-field class="pdb-form-full-width">
<mat-label>Name</mat-label>
<input matInput [(ngModel)]="data.name" #name>
<input matInput [(ngModel)]="data.name" #name focus>
</mat-form-field>
<mat-form-field class="pdb-form-full-width">
<mat-label>Description</mat-label>

View File

@@ -15,7 +15,7 @@ export class NewDashboardComponent implements OnInit {
}
ngOnInit(): void {
window.setTimeout(() => this.nameInput.nativeElement.focus(), 0);
//window.setTimeout(() => this.nameInput.nativeElement.focus(), 0);
}
onSaveClick(): void {

View File

@@ -112,6 +112,8 @@ ngAfterViewInit(): void {
this.updateDateRange(c.dateRange, false);
this.limitbycomponent.limitBy = c.limitBy;
this.limitbycomponent.limit = c.limit;
this.intervalUnit = c.intervalUnit;
this.intervalValue = c.intervalValue;
this.y1AxisDefinitionComponent.yAxisScale = c.y1.axisScale;
this.y1AxisDefinitionComponent.minYValue = c.y1.rangeMin;
this.y1AxisDefinitionComponent.maxYValue = c.y1.rangeMax;