, i: number) => {
return (
{getFormField(
@@ -1095,4 +1089,6 @@ const BasicForm: Function = forwardRef(
}
);
+BasicForm.displayName = 'BasicForm';
+
export default BasicForm;
diff --git a/CommonUI/src/Components/Forms/Fields/ColorPicker.tsx b/CommonUI/src/Components/Forms/Fields/ColorPicker.tsx
index 8adc3f1f30..ef24e4bb9c 100644
--- a/CommonUI/src/Components/Forms/Fields/ColorPicker.tsx
+++ b/CommonUI/src/Components/Forms/Fields/ColorPicker.tsx
@@ -33,9 +33,13 @@ const ColorPicker: FunctionComponent = (
const { ref, isComponentVisible, setIsComponentVisible } =
useComponentOutsideClick(false);
+ const [isInitialValuesInitialized, setIsInitialValuesInitialized] =
+ useState(false);
+
useEffect(() => {
- if (props.initialValue) {
+ if (props.initialValue && !isInitialValuesInitialized) {
setColor(props.initialValue.toString());
+ setIsInitialValuesInitialized(true);
}
}, [props.initialValue]);
diff --git a/CommonUI/src/Components/Workflow/ArgumentsForm.tsx b/CommonUI/src/Components/Workflow/ArgumentsForm.tsx
index 967905619a..ad146ef46e 100644
--- a/CommonUI/src/Components/Workflow/ArgumentsForm.tsx
+++ b/CommonUI/src/Components/Workflow/ArgumentsForm.tsx
@@ -85,9 +85,9 @@ const ArgumentsForm: FunctionComponent = (
onFormValidationErrorChanged={(
hasError: boolean
) => {
-
- if (hasFormValidationErrors['id'] !== hasError) {
-
+ if (
+ hasFormValidationErrors['id'] !== hasError
+ ) {
setHasFormValidatonErrors({
...hasFormValidationErrors,
id: hasError,
@@ -135,10 +135,11 @@ const ArgumentsForm: FunctionComponent = (
),
- description: `${arg.required
+ description: `${
+ arg.required
? 'Required'
: 'Optional'
- }. ${arg.description}`,
+ }. ${arg.description}`,
field: {
[arg.id]: true,
},
@@ -149,8 +150,8 @@ const ArgumentsForm: FunctionComponent = (
component.arguments &&
component.arguments[arg.id]
? component.arguments[
- arg.id
- ]
+ arg.id
+ ]
: null
),
};
diff --git a/CommonUI/src/Components/Workflow/Utils.ts b/CommonUI/src/Components/Workflow/Utils.ts
index ea501cf725..633cdd2155 100644
--- a/CommonUI/src/Components/Workflow/Utils.ts
+++ b/CommonUI/src/Components/Workflow/Utils.ts
@@ -101,7 +101,7 @@ export const componentInputTypeToFormFieldType: Function = (
},
{
label: 'Every Six Months',
- value: '0 0 1 */3 *',
+ value: '0 0 1 */6 *',
},
],
};
diff --git a/Dashboard/src/Pages/Workflow/Workflows.tsx b/Dashboard/src/Pages/Workflow/Workflows.tsx
index 58e00e494e..c4c76840f3 100644
--- a/Dashboard/src/Pages/Workflow/Workflows.tsx
+++ b/Dashboard/src/Pages/Workflow/Workflows.tsx
@@ -115,6 +115,22 @@ const Workflows: FunctionComponent = (
title: 'Enabled',
fieldType: FormFieldSchemaType.Toggle,
},
+ {
+ field: {
+ labels: true,
+ },
+ title: 'Labels ',
+ description:
+ 'Team members with access to these labels will only be able to access this resource. This is optional and an advanced feature.',
+ fieldType: FormFieldSchemaType.MultiSelectDropdown,
+ dropdownModal: {
+ type: Label,
+ labelField: 'name',
+ valueField: '_id',
+ },
+ required: false,
+ placeholder: 'Labels',
+ },
]}
showRefreshButton={true}
showFilterButton={true}