From e49a99e0f602ab6b88ecf96ee48c01d180e6f518 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Wed, 10 Jun 2020 11:20:07 -0400 Subject: [PATCH] after running pf code mod tool to auto update files to conform to v4 and a few manual tweaks --- .../src/components/AlertModal/AlertModal.jsx | 4 +- .../AnsibleSelect/AnsibleSelect.jsx | 2 +- .../AssociateModal/AssociateModal.jsx | 4 +- .../CodeMirrorInput/VariablesDetail.jsx | 2 +- .../CodeMirrorInput/VariablesField.jsx | 2 +- .../CodeMirrorInput/VariablesInput.jsx | 2 +- .../DataListToolbar/DataListToolbar.jsx | 2 +- .../src/components/FormField/FormField.jsx | 8 +- .../components/FormField/PasswordField.jsx | 2 +- .../components/FormField/PasswordInput.jsx | 2 +- .../src/components/HostForm/HostForm.jsx | 2 +- .../LaunchPrompt/steps/OtherPromptsStep.jsx | 4 +- .../LaunchPrompt/steps/SurveyStep.jsx | 6 +- .../components/Lookup/CredentialLookup.jsx | 2 +- awx/ui_next/src/components/Lookup/Lookup.jsx | 6 +- .../components/Lookup/OrganizationLookup.jsx | 2 +- .../src/components/Lookup/ProjectLookup.jsx | 2 +- .../components/MultiSelect/TagMultiSelect.jsx | 4 +- .../components/PromptDetail/PromptDetail.jsx | 4 +- .../PromptInventorySourceDetail.jsx | 6 +- .../PromptDetail/PromptJobTemplateDetail.jsx | 8 +- .../PromptWFJobTemplateDetail.jsx | 2 +- .../ResourceAccessListItem.jsx | 2 +- .../src/components/RoutedTabs/RoutedTabs.jsx | 4 +- .../ScheduleDetail/ScheduleDetail.jsx | 4 +- .../ScheduleOccurrences.jsx | 2 +- .../shared/FrequencyDetailSubform.jsx | 10 +- .../Schedule/shared/ScheduleForm.jsx | 6 +- awx/ui_next/src/components/Search/Search.jsx | 4 +- .../components/SelectedList/SelectedList.jsx | 2 +- .../Credential/shared/CredentialForm.jsx | 2 +- .../CredentialPluginField.jsx | 103 +++++++++++++ .../GoogleComputeEngineSubForm.jsx | 136 ++++++++++++++++++ .../InventoryDetail/InventoryDetail.jsx | 2 +- .../InventorySourceDetail.jsx | 6 +- .../Inventory/shared/InventorySourceForm.jsx | 2 +- .../InventorySourceSubForms/SCMSubForm.jsx | 6 +- .../InventorySourceSubForms/SharedFields.jsx | 2 +- .../src/screens/Job/JobDetail/JobDetail.jsx | 2 +- .../screens/Job/JobOutput/HostEventModal.jsx | 10 +- .../OrganizationDetail/OrganizationDetail.jsx | 2 +- .../screens/Project/shared/ProjectForm.jsx | 2 +- .../shared/ProjectSubForms/ManualSubForm.jsx | 2 +- .../Team/TeamAccess/TeamAccessListItem.jsx | 4 +- .../JobTemplateDetail/JobTemplateDetail.jsx | 8 +- .../Template/Survey/SurveyListItem.jsx | 2 +- .../Template/Survey/SurveyPreviewModal.jsx | 4 +- .../WorkflowJobTemplateDetail.jsx | 2 +- .../Modals/LinkModals/LinkAddModal.jsx | 4 +- .../Modals/LinkModals/LinkEditModal.jsx | 4 +- .../Modals/LinkModals/LinkModal.jsx | 2 +- .../NodeModals/NodeTypeStep/NodeTypeStep.jsx | 4 +- .../Modals/NodeModals/NodeViewModal.jsx | 4 +- .../Modals/UnsavedChangesModal.jsx | 2 +- .../VisualizerToolbar.jsx | 2 +- .../Template/shared/JobTemplateForm.jsx | 4 +- .../screens/Template/shared/LabelSelect.jsx | 4 +- .../User/UserAccess/UserAccessListItem.jsx | 4 +- .../src/screens/User/shared/UserForm.jsx | 2 +- 59 files changed, 339 insertions(+), 106 deletions(-) create mode 100644 awx/ui_next/src/screens/Credential/shared/CredentialPlugins/CredentialPluginField.jsx create mode 100644 awx/ui_next/src/screens/Credential/shared/CredentialSubForms/GoogleComputeEngineSubForm.jsx diff --git a/awx/ui_next/src/components/AlertModal/AlertModal.jsx b/awx/ui_next/src/components/AlertModal/AlertModal.jsx index b18b3e3285..2c6c9eaed9 100644 --- a/awx/ui_next/src/components/AlertModal/AlertModal.jsx +++ b/awx/ui_next/src/components/AlertModal/AlertModal.jsx @@ -67,9 +67,9 @@ export default function AlertModal({ return ( diff --git a/awx/ui_next/src/components/AnsibleSelect/AnsibleSelect.jsx b/awx/ui_next/src/components/AnsibleSelect/AnsibleSelect.jsx index bd348998d1..69fd9e40bf 100644 --- a/awx/ui_next/src/components/AnsibleSelect/AnsibleSelect.jsx +++ b/awx/ui_next/src/components/AnsibleSelect/AnsibleSelect.jsx @@ -43,7 +43,7 @@ class AnsibleSelect extends React.Component { onChange={this.onSelectChange} onBlur={onBlur} aria-label={i18n._(t`Select Input`)} - isValid={isValid} + validated={(isValid) ? 'default' : 'error'} className={className} isDisabled={isDisabled} > diff --git a/awx/ui_next/src/components/AssociateModal/AssociateModal.jsx b/awx/ui_next/src/components/AssociateModal/AssociateModal.jsx index 86aa534f12..94fe8330bb 100644 --- a/awx/ui_next/src/components/AssociateModal/AssociateModal.jsx +++ b/awx/ui_next/src/components/AssociateModal/AssociateModal.jsx @@ -74,8 +74,8 @@ function AssociateModal({ return ( - +
- +