From 352c8c3cb1827d245cf620828da19aeba56c4471 Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Fri, 7 Feb 2020 09:57:46 -0800 Subject: [PATCH] add FormSubmitError to existing forms --- .../components/FormActionGroup/FormActionGroup.jsx | 11 +---------- .../src/components/FormField/FormSubmitError.jsx | 10 ++-------- awx/ui_next/src/screens/Host/HostEdit/HostEdit.jsx | 6 ------ awx/ui_next/src/screens/Host/shared/HostForm.jsx | 2 +- .../Inventory/InventoryAdd/InventoryAdd.jsx | 12 +----------- .../Inventory/InventoryEdit/InventoryEdit.jsx | 5 +---- .../src/screens/Inventory/shared/InventoryForm.jsx | 6 +++++- .../OrganizationAdd/OrganizationAdd.jsx | 2 +- .../OrganizationEdit/OrganizationEdit.jsx | 2 +- .../Organization/shared/OrganizationForm.jsx | 14 ++++++++++++-- .../src/screens/Project/shared/ProjectForm.jsx | 2 +- awx/ui_next/src/screens/Team/TeamAdd/TeamAdd.jsx | 2 +- awx/ui_next/src/screens/Team/TeamEdit/TeamEdit.jsx | 2 +- awx/ui_next/src/screens/Team/shared/TeamForm.jsx | 7 +++++-- .../screens/Template/shared/JobTemplateForm.jsx | 7 ++----- awx/ui_next/src/screens/User/UserAdd/UserAdd.jsx | 11 +++++------ awx/ui_next/src/screens/User/UserEdit/UserEdit.jsx | 2 +- awx/ui_next/src/screens/User/shared/UserForm.jsx | 9 ++++++--- 18 files changed, 47 insertions(+), 65 deletions(-) diff --git a/awx/ui_next/src/components/FormActionGroup/FormActionGroup.jsx b/awx/ui_next/src/components/FormActionGroup/FormActionGroup.jsx index 4da1191de4..bae4fe0772 100644 --- a/awx/ui_next/src/components/FormActionGroup/FormActionGroup.jsx +++ b/awx/ui_next/src/components/FormActionGroup/FormActionGroup.jsx @@ -21,15 +21,8 @@ const ActionGroup = styled(PFActionGroup)` } `; -const FormActionGroup = ({ - onSubmit, - submitDisabled, - onCancel, - errorMessage, - i18n, -}) => ( +const FormActionGroup = ({ onSubmit, submitDisabled, onCancel, i18n }) => ( - {errorMessage}