added test dialog required expression
This commit is contained in:
parent
373cca1e19
commit
0d3f364bed
@ -38,6 +38,7 @@
|
||||
functionName="calculate"
|
||||
class="expression-edit"
|
||||
[functionArgs]="functionArgs"
|
||||
[required]="true"
|
||||
[disableUndefinedCheck]="true"
|
||||
[fillHeight]="true"
|
||||
[highlightRules]="data.argumentsHighlightRules"
|
||||
|
||||
@ -26,7 +26,7 @@ import {
|
||||
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { AppState } from '@core/core.state';
|
||||
import { FormBuilder } from '@angular/forms';
|
||||
import { FormBuilder, Validators } from '@angular/forms';
|
||||
import { NEVER, Observable, of, switchMap } from 'rxjs';
|
||||
import { Router } from '@angular/router';
|
||||
import { DialogComponent } from '@shared/components/dialog.component';
|
||||
@ -62,7 +62,7 @@ export class CalculatedFieldScriptTestDialogComponent extends DialogComponent<Ca
|
||||
@ViewChild('expressionContent', {static: true}) expressionContent: JsonContentComponent;
|
||||
|
||||
calculatedFieldScriptTestFormGroup = this.fb.group({
|
||||
expression: [],
|
||||
expression: ['', Validators.required],
|
||||
arguments: [],
|
||||
output: []
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user