Added the hasErrors flag support for the general tab.
This commit is contained in:
parent
0cd3995ea0
commit
324bce3fc0
@ -140,11 +140,23 @@ const WorkflowTemplateDetails: React.FC<{ editMode: boolean }> = ({
|
|||||||
errors["tasks"] = t("TasksValidationError");
|
errors["tasks"] = t("TasksValidationError");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const generalTabValid = !(
|
||||||
|
errors["domainId"] ||
|
||||||
|
errors["name"] ||
|
||||||
|
errors["activityNameTemplate"] ||
|
||||||
|
errors["description"]
|
||||||
|
);
|
||||||
|
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
// Tabs
|
// Tabs
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
const tabs = [
|
const tabs = [
|
||||||
<Tab key="general" id="general" label={t("General")}>
|
<Tab
|
||||||
|
key="general"
|
||||||
|
id="general"
|
||||||
|
label={t("General")}
|
||||||
|
hasError={!generalTabValid}
|
||||||
|
>
|
||||||
<GeneralTab
|
<GeneralTab
|
||||||
data={data}
|
data={data}
|
||||||
errors={errors}
|
errors={errors}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user