Browse Source
Merge pull request #4190 from vvlladd28/bug/filter-text/alarm-rule
UI: Fixed filter preview text at boolean type in alarm rule
pull/4203/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
ui-ngx/src/app/shared/models/query/query.models.ts
|
|
|
@ -455,7 +455,9 @@ function simpleKeyFilterPredicateToText(translate: TranslateService, |
|
|
|
break; |
|
|
|
case FilterPredicateType.BOOLEAN: |
|
|
|
operation = translate.instant(booleanOperationTranslationMap.get(keyFilterPredicate.operation)); |
|
|
|
value = translate.instant(keyFilterPredicate.value.defaultValue ? 'value.true' : 'value.false'); |
|
|
|
if (!dynamicValue) { |
|
|
|
value = translate.instant(keyFilterPredicate.value.defaultValue ? 'value.true' : 'value.false'); |
|
|
|
} |
|
|
|
break; |
|
|
|
} |
|
|
|
if (!dynamicValue) { |
|
|
|
|