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");
|
||||
}
|
||||
|
||||
const generalTabValid = !(
|
||||
errors["domainId"] ||
|
||||
errors["name"] ||
|
||||
errors["activityNameTemplate"] ||
|
||||
errors["description"]
|
||||
);
|
||||
|
||||
// -----------------------------
|
||||
// Tabs
|
||||
// -----------------------------
|
||||
const tabs = [
|
||||
<Tab key="general" id="general" label={t("General")}>
|
||||
<Tab
|
||||
key="general"
|
||||
id="general"
|
||||
label={t("General")}
|
||||
hasError={!generalTabValid}
|
||||
>
|
||||
<GeneralTab
|
||||
data={data}
|
||||
errors={errors}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user