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