[ACS-3872] Disable boolean mode dropdown due to lack of OR in ACS (#2744)

This commit is contained in:
Thomas Hunter 2022-10-27 12:37:19 +01:00 committed by GitHub
parent fd83219d54
commit 2bdad0bce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,7 @@
<mat-form-field *ngIf="i > 0"> <mat-form-field *ngIf="i > 0">
<mat-select <mat-select
[value]="booleanModeControl.value" [value]="booleanModeControl.value"
[disabled]="i > 1 || readOnly" [disabled]="!isOrImplemented || i > 1 || readOnly"
(selectionChange)="setBooleanMode($event.value)"> (selectionChange)="setBooleanMode($event.value)">
<mat-option value="and">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.AND' | translate }}</mat-option> <mat-option value="and">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.AND' | translate }}</mat-option>
<mat-option value="or">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.OR' | translate }}</mat-option> <mat-option value="or">{{ 'ACA_FOLDER_RULES.RULE_DETAILS.LOGIC_OPERATORS.OR' | translate }}</mat-option>

View File

@ -57,6 +57,8 @@ export class RuleCompositeConditionUiComponent implements ControlValueAccessor,
simpleConditions: new FormArray([]) simpleConditions: new FormArray([])
}); });
readonly isOrImplemented = false;
private _readOnly = false; private _readOnly = false;
@Input() @Input()
get readOnly(): boolean { get readOnly(): boolean {