From 93ba00516aaccc0c3dc8e42e11a3d288dff0a644 Mon Sep 17 00:00:00 2001 From: Nikita Maliarchuk <84377976+nikita-web-ua@users.noreply.github.com> Date: Tue, 24 Jan 2023 18:14:55 +0100 Subject: [PATCH] [ACS-4446] Folder Rules Bug Fix: Error thrown when Condition If Name Starts With/Ends With is used (#2918) * ACS-4446 - renamed names * ACS-4446 - renamed 'less/greater than or equal' filds name --- .../rule-details/conditions/rule-condition-comparators.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/aca-folder-rules/src/lib/rule-details/conditions/rule-condition-comparators.ts b/projects/aca-folder-rules/src/lib/rule-details/conditions/rule-condition-comparators.ts index 9fabd58ce..bd3da5081 100644 --- a/projects/aca-folder-rules/src/lib/rule-details/conditions/rule-condition-comparators.ts +++ b/projects/aca-folder-rules/src/lib/rule-details/conditions/rule-condition-comparators.ts @@ -47,13 +47,13 @@ export const ruleConditionComparators: RuleConditionComparator[] = [ } }, { - name: 'starts_with', + name: 'begins', labels: { string: 'ACA_FOLDER_RULES.RULE_DETAILS.COMPARATORS.STARTS_WITH' } }, { - name: 'ends_with', + name: 'ends', labels: { string: 'ACA_FOLDER_RULES.RULE_DETAILS.COMPARATORS.ENDS_WITH' } @@ -73,14 +73,14 @@ export const ruleConditionComparators: RuleConditionComparator[] = [ } }, { - name: 'greater_than_or_equal', + name: 'greater_than_equal', labels: { number: 'ACA_FOLDER_RULES.RULE_DETAILS.COMPARATORS.GREATER_THAN_OR_EQUAL', date: 'ACA_FOLDER_RULES.RULE_DETAILS.COMPARATORS.ON_OR_AFTER' } }, { - name: 'less_than_or_equal', + name: 'less_than_equal', labels: { number: 'ACA_FOLDER_RULES.RULE_DETAILS.COMPARATORS.LESS_THAN_OR_EQUAL', date: 'ACA_FOLDER_RULES.RULE_DETAILS.COMPARATORS.ON_OR_BEFORE'