diff --git a/projects/editor/src/app/components/dialogs/visibility-rules-dialog/visibility-rule-editor.component.html b/projects/editor/src/app/components/dialogs/visibility-rules-dialog/visibility-rule-editor.component.html index 9facd220eb03dfe5c8a33d33ae7cbfa54fa4367b..640a8cfddea521c240ef4c4c6cf05a5c6b348835 100644 --- a/projects/editor/src/app/components/dialogs/visibility-rules-dialog/visibility-rule-editor.component.html +++ b/projects/editor/src/app/components/dialogs/visibility-rules-dialog/visibility-rule-editor.component.html @@ -16,7 +16,7 @@ (ngModelChange)="visibilityRuleChange.emit(visibilityRule)"> <mat-option *ngFor="let operator of VisibilityRuleOperators" [value]="operator"> - {{operator.length > 2 ? ('visibilityRule.' + operator | translate) : operator}} + {{operator.length > 1 ? ('visibilityRule.' + operator | translate) : operator}} </mat-option> </mat-select> </mat-form-field> diff --git a/projects/player/src/app/directives/section-visibility-handling.directive.ts b/projects/player/src/app/directives/section-visibility-handling.directive.ts index 1a24a419271a8390b7f234e43111770501663c6b..a197906ae11238533eaf99b223817b00af7307eb 100644 --- a/projects/player/src/app/directives/section-visibility-handling.directive.ts +++ b/projects/player/src/app/directives/section-visibility-handling.directive.ts @@ -111,15 +111,15 @@ export class SectionVisibilityHandlingDirective implements OnInit, OnDestroy { switch (rule.operator) { case '=': return this.unitStateService.getElementCodeById(rule.id)?.value?.toString() === rule.value; - case '!=': + case '≠': return this.unitStateService.getElementCodeById(rule.id)?.value?.toString() !== rule.value; case '>': return Number(this.unitStateService.getElementCodeById(rule.id)?.value) > Number(rule.value); case '<': return Number(this.unitStateService.getElementCodeById(rule.id)?.value) < Number(rule.value); - case '>=': + case '≥': return Number(this.unitStateService.getElementCodeById(rule.id)?.value) >= Number(rule.value); - case '<=': + case '≤': return Number(this.unitStateService.getElementCodeById(rule.id)?.value) <= Number(rule.value); case 'contains': return this.unitStateService.getElementCodeById(rule.id)?.value?.toString().includes(rule.value);