balibabu
commited on
Commit
·
b88bbad
1
Parent(s):
c46dd12
Fix: Translate the operator options of the Switch operator #1739 (#4519)
Browse files### What problem does this PR solve?
Fix: Translate the operator options of the Switch operator #1739
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
web/src/locales/en.ts
CHANGED
|
@@ -956,17 +956,17 @@ This procedure will improve precision of retrieval by adding more information to
|
|
| 956 |
switch: 'Switch',
|
| 957 |
logicalOperator: 'Logical operator',
|
| 958 |
switchOperatorOptions: {
|
| 959 |
-
equal: '
|
| 960 |
-
notEqual: '
|
| 961 |
gt: 'Greater than',
|
| 962 |
ge: 'Greater equal',
|
| 963 |
lt: 'Less than',
|
| 964 |
le: 'Less equal',
|
| 965 |
contains: 'Contains',
|
| 966 |
notContains: 'Not contains',
|
| 967 |
-
startWith: '
|
| 968 |
-
endWith: '
|
| 969 |
-
empty: '
|
| 970 |
notEmpty: 'Not empty',
|
| 971 |
},
|
| 972 |
switchLogicOperatorOptions: {
|
|
|
|
| 956 |
switch: 'Switch',
|
| 957 |
logicalOperator: 'Logical operator',
|
| 958 |
switchOperatorOptions: {
|
| 959 |
+
equal: 'Equals',
|
| 960 |
+
notEqual: 'Not equal',
|
| 961 |
gt: 'Greater than',
|
| 962 |
ge: 'Greater equal',
|
| 963 |
lt: 'Less than',
|
| 964 |
le: 'Less equal',
|
| 965 |
contains: 'Contains',
|
| 966 |
notContains: 'Not contains',
|
| 967 |
+
startWith: 'Starts with',
|
| 968 |
+
endWith: 'Ends with',
|
| 969 |
+
empty: 'Is empty',
|
| 970 |
notEmpty: 'Not empty',
|
| 971 |
},
|
| 972 |
switchLogicOperatorOptions: {
|
web/src/pages/flow/form/switch-form/index.tsx
CHANGED
|
@@ -10,9 +10,10 @@ import {
|
|
| 10 |
} from '../../constant';
|
| 11 |
import { useBuildFormSelectOptions } from '../../form-hooks';
|
| 12 |
import { useBuildComponentIdSelectOptions } from '../../hooks/use-get-begin-query';
|
| 13 |
-
import { IOperatorForm
|
| 14 |
import { getOtherFieldValues } from '../../utils';
|
| 15 |
|
|
|
|
| 16 |
import styles from './index.less';
|
| 17 |
|
| 18 |
const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
|
|
@@ -88,7 +89,10 @@ const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
|
|
| 88 |
)
|
| 89 |
}
|
| 90 |
</Form.Item>
|
| 91 |
-
<Form.Item
|
|
|
|
|
|
|
|
|
|
| 92 |
<Select
|
| 93 |
allowClear
|
| 94 |
options={buildCategorizeToOptions([
|
|
|
|
| 10 |
} from '../../constant';
|
| 11 |
import { useBuildFormSelectOptions } from '../../form-hooks';
|
| 12 |
import { useBuildComponentIdSelectOptions } from '../../hooks/use-get-begin-query';
|
| 13 |
+
import { IOperatorForm } from '../../interface';
|
| 14 |
import { getOtherFieldValues } from '../../utils';
|
| 15 |
|
| 16 |
+
import { ISwitchForm } from '@/interfaces/database/flow';
|
| 17 |
import styles from './index.less';
|
| 18 |
|
| 19 |
const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
|
|
|
|
| 89 |
)
|
| 90 |
}
|
| 91 |
</Form.Item>
|
| 92 |
+
<Form.Item
|
| 93 |
+
label={t('flow.nextStep')}
|
| 94 |
+
name={[field.name, 'to']}
|
| 95 |
+
>
|
| 96 |
<Select
|
| 97 |
allowClear
|
| 98 |
options={buildCategorizeToOptions([
|