@openshift-assisted/ui-lib 2.46.2 → 2.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
- package/build/@types/cim/components/common/ResourceAlerts.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIpxeScript.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIsoModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/ClusterWizardStepHeader.d.ts.map +1 -1
- package/build/@types/common/components/hosts/AITableMemo.d.ts.map +1 -1
- package/build/@types/common/components/hosts/AdditionalNTPSourcesDialog.d.ts.map +1 -1
- package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
- package/build/@types/common/components/hosts/EditHostModal.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostRequirements.d.ts.map +1 -1
- package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
- package/build/@types/common/components/hosts/MassDeleteHostModal.d.ts.map +1 -1
- package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts.map +1 -1
- package/build/@types/common/components/ui/ConfirmationModal.d.ts +2 -3
- package/build/@types/common/components/ui/ConfirmationModal.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -1
- package/build/@types/common/components/ui/SectionTitle.d.ts.map +1 -1
- package/build/@types/common/components/ui/StaticTextField.d.ts.map +1 -1
- package/build/@types/common/components/ui/eventsModal.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/AlertFormikError.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/TextAreaField.d.ts.map +1 -1
- package/build/@types/ocm/components/AddHosts/InventoryAddHost.d.ts.map +1 -1
- package/build/@types/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.d.ts.map +1 -1
- package/build/@types/ocm/components/AddHosts/day2Wizard/Day2Wizard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/HostInventory.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/CancelInstallationModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterDetail.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterDetailStatusMessages.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterInstallationError.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterPollingErrorModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterUpdateErrorModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/OpenShiftVersionDetail.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ProgressBarAlerts.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/DeleteClusterModal.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/DeleteHostModal.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/HostRequirementsContent.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/ResetHostModal.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/UpdateDay2ApiVipForm.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/UpdateDay2ApiVipModal.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts +1 -2
- package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js +2 -3
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js +4 -6
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +1 -2
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
- package/build/cjs/cim/components/common/ResourceAlerts.js +15 -16
- package/build/cjs/cim/components/common/ResourceAlerts.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +2 -3
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryIpxeInstructions.js +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryIpxeInstructions.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +7 -6
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js +1 -2
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIpxeScript.js +2 -3
- package/build/cjs/common/components/clusterConfiguration/DownloadIpxeScript.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +4 -4
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIsoModal.js +3 -2
- package/build/cjs/common/components/clusterConfiguration/DownloadIsoModal.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js +5 -3
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js +1 -2
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/ClusterWizardStepHeader.js +1 -2
- package/build/cjs/common/components/clusterWizard/ClusterWizardStepHeader.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.js +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.js.map +1 -1
- package/build/cjs/common/components/hosts/AITableMemo.js +2 -1
- package/build/cjs/common/components/hosts/AITableMemo.js.map +1 -1
- package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js +4 -4
- package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js.map +1 -1
- package/build/cjs/common/components/hosts/EditHostForm.js +2 -3
- package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
- package/build/cjs/common/components/hosts/EditHostModal.js +3 -2
- package/build/cjs/common/components/hosts/EditHostModal.js.map +1 -1
- package/build/cjs/common/components/hosts/HostRequirements.js +1 -2
- package/build/cjs/common/components/hosts/HostRequirements.js.map +1 -1
- package/build/cjs/common/components/hosts/HostStatus.js +2 -2
- package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +4 -4
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
- package/build/cjs/common/components/hosts/MassDeleteHostModal.js +4 -4
- package/build/cjs/common/components/hosts/MassDeleteHostModal.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +1 -2
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/components/storage/StorageUtils.js +1 -2
- package/build/cjs/common/components/storage/StorageUtils.js.map +1 -1
- package/build/cjs/common/components/ui/ConfirmationModal.js +5 -4
- package/build/cjs/common/components/ui/ConfirmationModal.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js +7 -6
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -1
- package/build/cjs/common/components/ui/SectionTitle.js +1 -2
- package/build/cjs/common/components/ui/SectionTitle.js.map +1 -1
- package/build/cjs/common/components/ui/StaticTextField.js +1 -2
- package/build/cjs/common/components/ui/StaticTextField.js.map +1 -1
- package/build/cjs/common/components/ui/eventsModal.js +9 -9
- package/build/cjs/common/components/ui/eventsModal.js.map +1 -1
- package/build/cjs/common/components/ui/formik/AlertFormikError.js +1 -2
- package/build/cjs/common/components/ui/formik/AlertFormikError.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.css +0 -7
- package/build/cjs/common/components/ui/formik/RichInputField.js +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/TextAreaField.js +2 -1
- package/build/cjs/common/components/ui/formik/TextAreaField.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js +3 -4
- package/build/cjs/ocm/components/AddHosts/InventoryAddHost.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js +1 -2
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js +1 -2
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2Wizard.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js +3 -5
- package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +11 -9
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.js +7 -7
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js +5 -5
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js +3 -2
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js +6 -7
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js +6 -6
- package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +1 -2
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js +17 -14
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +4 -5
- package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterPollingErrorModal.js +5 -4
- package/build/cjs/ocm/components/clusterDetail/ClusterPollingErrorModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +1 -2
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterUpdateErrorModal.js +5 -4
- package/build/cjs/ocm/components/clusterDetail/ClusterUpdateErrorModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +1 -2
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +4 -5
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +5 -3
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +1 -2
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +1 -2
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js +1 -2
- package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/clusters/Clusters.js +1 -2
- package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
- package/build/cjs/ocm/components/clusters/DeleteClusterModal.js +8 -7
- package/build/cjs/ocm/components/clusters/DeleteClusterModal.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
- package/build/cjs/ocm/components/hosts/DeleteHostModal.js +5 -4
- package/build/cjs/ocm/components/hosts/DeleteHostModal.js.map +1 -1
- package/build/cjs/ocm/components/hosts/HostRequirementsContent.js +1 -2
- package/build/cjs/ocm/components/hosts/HostRequirementsContent.js.map +1 -1
- package/build/cjs/ocm/components/hosts/ResetHostModal.js +8 -7
- package/build/cjs/ocm/components/hosts/ResetHostModal.js.map +1 -1
- package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js +2 -3
- package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js.map +1 -1
- package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipModal.js +3 -2
- package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipModal.js.map +1 -1
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js +5 -4
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js.map +1 -1
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx +3 -5
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.tsx +8 -12
- package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +1 -5
- package/lib/cim/components/common/ResourceAlerts.tsx +26 -28
- package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +14 -6
- package/lib/common/components/clusterConfiguration/DiscoveryInstructions.tsx +2 -2
- package/lib/common/components/clusterConfiguration/DiscoveryIpxeInstructions.tsx +2 -2
- package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +15 -12
- package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.tsx +1 -3
- package/lib/common/components/clusterConfiguration/DownloadIpxeScript.tsx +6 -5
- package/lib/common/components/clusterConfiguration/DownloadIso.tsx +8 -5
- package/lib/common/components/clusterConfiguration/DownloadIsoModal.tsx +2 -3
- package/lib/common/components/clusterDetail/ConsoleModal.tsx +17 -10
- package/lib/common/components/clusterDetail/FinalizingProgress.tsx +4 -6
- package/lib/common/components/clusterWizard/ClusterWizardStepHeader.tsx +1 -3
- package/lib/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.tsx +2 -2
- package/lib/common/components/hosts/AITableMemo.tsx +1 -0
- package/lib/common/components/hosts/AdditionalNTPSourcesDialog.tsx +11 -10
- package/lib/common/components/hosts/EditHostForm.tsx +6 -5
- package/lib/common/components/hosts/EditHostModal.tsx +2 -3
- package/lib/common/components/hosts/HostRequirements.tsx +2 -4
- package/lib/common/components/hosts/HostStatus.tsx +5 -5
- package/lib/common/components/hosts/MassChangeHostnameModal.tsx +9 -7
- package/lib/common/components/hosts/MassDeleteHostModal.tsx +15 -9
- package/lib/common/components/storage/DisksTable.tsx +1 -3
- package/lib/common/components/storage/StorageUtils.tsx +1 -3
- package/lib/common/components/ui/ConfirmationModal.tsx +18 -15
- package/lib/common/components/ui/OpenShiftVersionModal.tsx +32 -22
- package/lib/common/components/ui/SectionTitle.tsx +2 -4
- package/lib/common/components/ui/StaticTextField.tsx +2 -4
- package/lib/common/components/ui/eventsModal.tsx +29 -20
- package/lib/common/components/ui/formik/AlertFormikError.tsx +8 -10
- package/lib/common/components/ui/formik/RichInputField.css +0 -7
- package/lib/common/components/ui/formik/RichInputField.tsx +2 -1
- package/lib/common/components/ui/formik/TextAreaField.tsx +13 -4
- package/lib/ocm/components/AddHosts/InventoryAddHost.tsx +4 -6
- package/lib/ocm/components/AddHosts/day2Wizard/Day2StaticIpHostConfigurations.tsx +1 -5
- package/lib/ocm/components/AddHosts/day2Wizard/Day2Wizard.tsx +2 -4
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.tsx +6 -7
- package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +7 -11
- package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +43 -25
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/DeleteCustomManifestModal.tsx +22 -16
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.tsx +5 -5
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +2 -0
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +1 -3
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx +14 -3
- package/lib/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.tsx +1 -3
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsConfirmationModal.tsx +15 -9
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.tsx +1 -3
- package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.tsx +10 -3
- package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.tsx +6 -8
- package/lib/ocm/components/clusterDetail/CancelInstallationModal.tsx +19 -17
- package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +1 -3
- package/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx +34 -26
- package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +5 -7
- package/lib/ocm/components/clusterDetail/ClusterPollingErrorModal.tsx +15 -13
- package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +1 -3
- package/lib/ocm/components/clusterDetail/ClusterUpdateErrorModal.tsx +17 -13
- package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +2 -4
- package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +5 -7
- package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +16 -12
- package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +1 -3
- package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +1 -3
- package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +2 -2
- package/lib/ocm/components/clusters/ClusterPage.tsx +1 -3
- package/lib/ocm/components/clusters/Clusters.tsx +1 -3
- package/lib/ocm/components/clusters/DeleteClusterModal.tsx +16 -11
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +2 -2
- package/lib/ocm/components/hosts/DeleteHostModal.tsx +18 -9
- package/lib/ocm/components/hosts/HostRequirementsContent.tsx +3 -5
- package/lib/ocm/components/hosts/ResetHostModal.tsx +16 -13
- package/lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx +12 -6
- package/lib/ocm/components/hosts/UpdateDay2ApiVipModal.tsx +2 -3
- package/lib/ocm/components/ui/InfoLinkWithModal.tsx +16 -13
- package/package.json +3 -3
|
@@ -6,10 +6,11 @@ import {
|
|
|
6
6
|
ButtonVariant,
|
|
7
7
|
ClipboardCopy,
|
|
8
8
|
clipboardCopyFunc,
|
|
9
|
+
ModalBody,
|
|
10
|
+
ModalFooter,
|
|
9
11
|
Stack,
|
|
10
12
|
StackItem,
|
|
11
13
|
} from '@patternfly/react-core';
|
|
12
|
-
import { ModalBoxBody, ModalBoxFooter } from '@patternfly/react-core/deprecated';
|
|
13
14
|
import { DetailItem, DetailList } from '../ui';
|
|
14
15
|
import DiscoveryInstructions from './DiscoveryInstructions';
|
|
15
16
|
import { StaticIPInfo } from './DiscoveryImageConfigForm';
|
|
@@ -48,7 +49,7 @@ const DownloadIso = ({
|
|
|
48
49
|
|
|
49
50
|
return (
|
|
50
51
|
<>
|
|
51
|
-
<
|
|
52
|
+
<ModalBody>
|
|
52
53
|
<Stack hasGutter>
|
|
53
54
|
<StackItem>
|
|
54
55
|
<Alert
|
|
@@ -103,6 +104,8 @@ const DownloadIso = ({
|
|
|
103
104
|
}
|
|
104
105
|
/>
|
|
105
106
|
</DetailList>
|
|
107
|
+
</StackItem>
|
|
108
|
+
<StackItem>
|
|
106
109
|
<Alert
|
|
107
110
|
variant="info"
|
|
108
111
|
isInline
|
|
@@ -112,8 +115,8 @@ const DownloadIso = ({
|
|
|
112
115
|
/>
|
|
113
116
|
</StackItem>
|
|
114
117
|
</Stack>
|
|
115
|
-
</
|
|
116
|
-
<
|
|
118
|
+
</ModalBody>
|
|
119
|
+
<ModalFooter>
|
|
117
120
|
<Button
|
|
118
121
|
variant={ButtonVariant.primary}
|
|
119
122
|
onClick={() => downloadUrl && saveAs(downloadUrl)}
|
|
@@ -130,7 +133,7 @@ const DownloadIso = ({
|
|
|
130
133
|
{t('ai:Edit ISO configuration')}
|
|
131
134
|
</Button>
|
|
132
135
|
)}
|
|
133
|
-
</
|
|
136
|
+
</ModalFooter>
|
|
134
137
|
</>
|
|
135
138
|
);
|
|
136
139
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
|
|
3
2
|
import DownloadIso, { DownloadISOProps } from './DownloadIso';
|
|
4
3
|
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
4
|
+
import { Modal, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
5
5
|
|
|
6
6
|
type DownloadIsoModalProps = DownloadISOProps & {
|
|
7
7
|
isOpen: boolean;
|
|
@@ -12,13 +12,12 @@ const DownloadIsoModal: React.FC<DownloadIsoModalProps> = ({ isOpen, ...props })
|
|
|
12
12
|
return (
|
|
13
13
|
<Modal
|
|
14
14
|
aria-label={t('ai:Download host discovery ISO dialog')}
|
|
15
|
-
title={t('ai:Add host')}
|
|
16
15
|
isOpen={isOpen}
|
|
17
16
|
onClose={props.onClose}
|
|
18
17
|
variant={ModalVariant.small}
|
|
19
|
-
hasNoBodyWrapper
|
|
20
18
|
id="download-discovery-iso-modal"
|
|
21
19
|
>
|
|
20
|
+
<ModalHeader title={t('ai:Add host')} />
|
|
22
21
|
<DownloadIso {...props} />
|
|
23
22
|
</Modal>
|
|
24
23
|
);
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
ButtonVariant,
|
|
5
|
+
Content,
|
|
6
|
+
ExpandableSection,
|
|
7
|
+
Modal,
|
|
8
|
+
ModalBody,
|
|
9
|
+
ModalFooter,
|
|
10
|
+
ModalHeader,
|
|
11
|
+
ModalVariant,
|
|
12
|
+
} from '@patternfly/react-core';
|
|
4
13
|
import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
5
14
|
import { removeProtocolFromURL } from '../../api';
|
|
6
15
|
import { ToolbarButton } from '../ui/Toolbar';
|
|
@@ -174,14 +183,12 @@ export const ConsoleModal: React.FC<ConsoleModalProps> = ({
|
|
|
174
183
|
</Button>,
|
|
175
184
|
];
|
|
176
185
|
return (
|
|
177
|
-
<Modal
|
|
178
|
-
title={t('ai:OpenShift Web Console troubleshooting')}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
>
|
|
184
|
-
<WebConsoleHint cluster={cluster} consoleUrl={consoleUrl} />
|
|
186
|
+
<Modal isOpen={isOpen} onClose={closeModal} variant={ModalVariant.large}>
|
|
187
|
+
<ModalHeader title={t('ai:OpenShift Web Console troubleshooting')} />
|
|
188
|
+
<ModalBody>
|
|
189
|
+
<WebConsoleHint cluster={cluster} consoleUrl={consoleUrl} />
|
|
190
|
+
</ModalBody>
|
|
191
|
+
<ModalFooter>{actions}</ModalFooter>
|
|
185
192
|
</Modal>
|
|
186
193
|
);
|
|
187
194
|
};
|
|
@@ -87,12 +87,10 @@ export const FinalizingProgress: React.FC<FinalizingProgressProps> = ({
|
|
|
87
87
|
zIndex={300} // set the zIndex below Cluster Events Modal
|
|
88
88
|
headerContent={<>{t('ai:Initialization')}</>}
|
|
89
89
|
bodyContent={
|
|
90
|
-
<Content>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
)}
|
|
95
|
-
</Content>
|
|
90
|
+
<Content component="p">
|
|
91
|
+
{t(
|
|
92
|
+
'ai:This stage may take a while to finish. To view detailed information, click the events log link below.',
|
|
93
|
+
)}
|
|
96
94
|
</Content>
|
|
97
95
|
}
|
|
98
96
|
footerContent={
|
|
@@ -2,9 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Content } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
const ClusterWizardStepHeader: React.FC = ({ children }) => (
|
|
5
|
-
<Content>
|
|
6
|
-
<Content component="h2">{children}</Content>
|
|
7
|
-
</Content>
|
|
5
|
+
<Content component="h2">{children}</Content>
|
|
8
6
|
);
|
|
9
7
|
|
|
10
8
|
export default ClusterWizardStepHeader;
|
package/lib/common/components/clusterWizard/networkingSteps/UserManagedNetworkingTextContent.tsx
CHANGED
|
@@ -16,7 +16,7 @@ export const UserManagedNetworkingTextContent = ({
|
|
|
16
16
|
}: UserManagedNetworkingTextContentProps) => {
|
|
17
17
|
const { t } = useTranslation();
|
|
18
18
|
return (
|
|
19
|
-
|
|
19
|
+
<>
|
|
20
20
|
<Content component={'p'}>
|
|
21
21
|
<Trans t={t}>
|
|
22
22
|
ai:Please refer to the{' '}
|
|
@@ -34,6 +34,6 @@ export const UserManagedNetworkingTextContent = ({
|
|
|
34
34
|
<ListItem>{t('ai:Network ports')}</ListItem>
|
|
35
35
|
<ListItem>{t('ai:DNS')}</ListItem>
|
|
36
36
|
</List>
|
|
37
|
-
|
|
37
|
+
</>
|
|
38
38
|
);
|
|
39
39
|
};
|
|
@@ -2,13 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import { Formik, FormikHelpers } from 'formik';
|
|
3
3
|
import * as Yup from 'yup';
|
|
4
4
|
import { TFunction } from 'i18next';
|
|
5
|
-
import { Form, Button } from '@patternfly/react-core';
|
|
6
5
|
import {
|
|
6
|
+
Form,
|
|
7
|
+
Button,
|
|
8
|
+
ModalBody,
|
|
9
|
+
ModalFooter,
|
|
7
10
|
Modal,
|
|
8
11
|
ModalVariant,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from '@patternfly/react-core/deprecated';
|
|
12
|
+
ModalHeader,
|
|
13
|
+
} from '@patternfly/react-core';
|
|
12
14
|
import {
|
|
13
15
|
ntpSourceValidationSchema,
|
|
14
16
|
AdditionalNTPSourcesField,
|
|
@@ -74,7 +76,7 @@ const AdditionalNTPSourcesForm = ({
|
|
|
74
76
|
{({ submitForm, status, setStatus, isSubmitting, isValid, dirty }) => {
|
|
75
77
|
return (
|
|
76
78
|
<>
|
|
77
|
-
<
|
|
79
|
+
<ModalBody>
|
|
78
80
|
<Form>
|
|
79
81
|
<AlertFormikError
|
|
80
82
|
status={status as StatusErrorType}
|
|
@@ -90,8 +92,8 @@ const AdditionalNTPSourcesForm = ({
|
|
|
90
92
|
isRequired
|
|
91
93
|
/>
|
|
92
94
|
</Form>
|
|
93
|
-
</
|
|
94
|
-
<
|
|
95
|
+
</ModalBody>
|
|
96
|
+
<ModalFooter>
|
|
95
97
|
<Button
|
|
96
98
|
key="submit"
|
|
97
99
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
@@ -104,7 +106,7 @@ const AdditionalNTPSourcesForm = ({
|
|
|
104
106
|
<Button key="cancel" variant="link" onClick={onClose}>
|
|
105
107
|
{t('ai:Cancel')}
|
|
106
108
|
</Button>
|
|
107
|
-
</
|
|
109
|
+
</ModalFooter>
|
|
108
110
|
</>
|
|
109
111
|
);
|
|
110
112
|
}}
|
|
@@ -124,12 +126,11 @@ export const AdditionalNTPSourcesDialog: React.FC<AdditionalNTPSourcesDialogProp
|
|
|
124
126
|
}) => (
|
|
125
127
|
<Modal
|
|
126
128
|
aria-label="Add NTP sources"
|
|
127
|
-
title="Add NTP sources"
|
|
128
129
|
isOpen={isOpen}
|
|
129
130
|
onClose={onClose}
|
|
130
131
|
variant={ModalVariant.small}
|
|
131
|
-
hasNoBodyWrapper
|
|
132
132
|
>
|
|
133
|
+
<ModalHeader title="Add NTP sources" />
|
|
133
134
|
<AdditionalNTPSourcesForm
|
|
134
135
|
additionalNtpSource={additionalNtpSource}
|
|
135
136
|
onClose={onClose}
|
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
Form,
|
|
8
8
|
AlertVariant,
|
|
9
9
|
Alert,
|
|
10
|
+
ModalBody,
|
|
11
|
+
ModalFooter,
|
|
10
12
|
} from '@patternfly/react-core';
|
|
11
|
-
import { ModalBoxBody, ModalBoxFooter } from '@patternfly/react-core/deprecated';
|
|
12
13
|
|
|
13
14
|
import { Formik } from 'formik';
|
|
14
15
|
import { TFunction } from 'i18next';
|
|
@@ -104,7 +105,7 @@ const EditHostForm = ({
|
|
|
104
105
|
>
|
|
105
106
|
{({ handleSubmit, status, isSubmitting, isValid, setStatus, dirty }) => (
|
|
106
107
|
<Form onSubmit={handleSubmit}>
|
|
107
|
-
<
|
|
108
|
+
<ModalBody>
|
|
108
109
|
<GridGap>
|
|
109
110
|
<AlertFormikError
|
|
110
111
|
status={status as StatusErrorType}
|
|
@@ -135,8 +136,8 @@ const EditHostForm = ({
|
|
|
135
136
|
richValidationMessages={hostnameValidationMessages(t)}
|
|
136
137
|
/>
|
|
137
138
|
</GridGap>
|
|
138
|
-
</
|
|
139
|
-
<
|
|
139
|
+
</ModalBody>
|
|
140
|
+
<ModalFooter>
|
|
140
141
|
<Button
|
|
141
142
|
key="submit"
|
|
142
143
|
data-testid="change-hostname-form__button-change"
|
|
@@ -154,7 +155,7 @@ const EditHostForm = ({
|
|
|
154
155
|
>
|
|
155
156
|
{t('ai:Cancel')}
|
|
156
157
|
</Button>
|
|
157
|
-
</
|
|
158
|
+
</ModalFooter>
|
|
158
159
|
</Form>
|
|
159
160
|
)}
|
|
160
161
|
</Formik>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
|
|
3
2
|
import { Host, Inventory } from '@openshift-assisted/types/assisted-installer-service';
|
|
4
3
|
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
5
4
|
import EditHostForm, { EditHostFormProps } from './EditHostForm';
|
|
5
|
+
import { Modal, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
6
6
|
|
|
7
7
|
type EditHostModalProps = Pick<
|
|
8
8
|
EditHostFormProps,
|
|
@@ -33,12 +33,11 @@ const EditHostModal = ({
|
|
|
33
33
|
return (
|
|
34
34
|
<Modal
|
|
35
35
|
aria-label="Change hostname dialog"
|
|
36
|
-
title={t('ai:Change hostname')}
|
|
37
36
|
isOpen={isOpen}
|
|
38
37
|
onClose={onClose}
|
|
39
38
|
variant={ModalVariant.small}
|
|
40
|
-
hasNoBodyWrapper
|
|
41
39
|
>
|
|
40
|
+
<ModalHeader title={t('ai:Change hostname')} />
|
|
42
41
|
<EditHostForm
|
|
43
42
|
host={host}
|
|
44
43
|
inventory={inventory}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { List, ListItem
|
|
1
|
+
import { List, ListItem } from '@patternfly/react-core';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import ExternalLink from '../ui/ExternalLink';
|
|
4
4
|
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
@@ -83,9 +83,7 @@ export const HostRequirementsList: React.FC<HostRequirementsListProps> = ({
|
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
const HostRequirements: React.FC<HostRequirementsListProps> = (props) => (
|
|
86
|
-
<
|
|
87
|
-
<HostRequirementsList {...props} />
|
|
88
|
-
</Content>
|
|
86
|
+
<HostRequirementsList {...props} />
|
|
89
87
|
);
|
|
90
88
|
|
|
91
89
|
export default HostRequirements;
|
|
@@ -125,12 +125,12 @@ const HostStatusPopoverContent: React.FC<HostStatusPopoverContentProps> = ({
|
|
|
125
125
|
return (
|
|
126
126
|
<Stack hasGutter>
|
|
127
127
|
{additionalPopoverContent}
|
|
128
|
+
{details && (
|
|
129
|
+
<StackItem>
|
|
130
|
+
<Content component="p">{details}</Content>
|
|
131
|
+
</StackItem>
|
|
132
|
+
)}
|
|
128
133
|
<StackItem>
|
|
129
|
-
{details && (
|
|
130
|
-
<Content>
|
|
131
|
-
<Content component="p">{details}</Content>
|
|
132
|
-
</Content>
|
|
133
|
-
)}
|
|
134
134
|
<HostValidationGroups openshiftVersion={openshiftVersion} {...props} />
|
|
135
135
|
</StackItem>
|
|
136
136
|
</Stack>
|
|
@@ -6,13 +6,16 @@ import {
|
|
|
6
6
|
Form,
|
|
7
7
|
HelperText,
|
|
8
8
|
HelperTextItem,
|
|
9
|
+
Modal,
|
|
10
|
+
ModalBody,
|
|
11
|
+
ModalFooter,
|
|
12
|
+
ModalHeader,
|
|
9
13
|
Popover,
|
|
10
14
|
Split,
|
|
11
15
|
SplitItem,
|
|
12
16
|
Stack,
|
|
13
17
|
StackItem,
|
|
14
18
|
} from '@patternfly/react-core';
|
|
15
|
-
import { Modal, ModalBoxBody, ModalBoxFooter } from '@patternfly/react-core/deprecated';
|
|
16
19
|
import { Formik, useFormikContext } from 'formik';
|
|
17
20
|
import * as Yup from 'yup';
|
|
18
21
|
import { t_global_icon_color_status_info_default as blueInfoColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_info_default';
|
|
@@ -175,7 +178,7 @@ const MassChangeHostnameForm = ({
|
|
|
175
178
|
const { t } = useTranslation();
|
|
176
179
|
return (
|
|
177
180
|
<Form onSubmit={handleSubmit}>
|
|
178
|
-
<
|
|
181
|
+
<ModalBody>
|
|
179
182
|
<Stack hasGutter>
|
|
180
183
|
<StackItem>
|
|
181
184
|
<div>{t('ai:Rename hostnames using the custom template:')}</div>
|
|
@@ -250,8 +253,8 @@ const MassChangeHostnameForm = ({
|
|
|
250
253
|
/>
|
|
251
254
|
</StackItem>
|
|
252
255
|
</Stack>
|
|
253
|
-
</
|
|
254
|
-
<
|
|
256
|
+
</ModalBody>
|
|
257
|
+
<ModalFooter>
|
|
255
258
|
<Button
|
|
256
259
|
key="submit"
|
|
257
260
|
type={ButtonType.submit}
|
|
@@ -262,7 +265,7 @@ const MassChangeHostnameForm = ({
|
|
|
262
265
|
<Button onClick={onClose} variant={ButtonVariant.secondary} isDisabled={isSubmitting}>
|
|
263
266
|
{t('ai:Cancel')}
|
|
264
267
|
</Button>
|
|
265
|
-
</
|
|
268
|
+
</ModalFooter>
|
|
266
269
|
</Form>
|
|
267
270
|
);
|
|
268
271
|
};
|
|
@@ -296,13 +299,12 @@ const MassChangeHostnameModal = ({
|
|
|
296
299
|
return (
|
|
297
300
|
<Modal
|
|
298
301
|
aria-label={t('ai:Change hostnames dialog')}
|
|
299
|
-
title={t('ai:Change hostnames')}
|
|
300
302
|
isOpen={isOpen}
|
|
301
303
|
onClose={onClose}
|
|
302
|
-
hasNoBodyWrapper
|
|
303
304
|
id="mass-change-hostname-modal"
|
|
304
305
|
variant="small"
|
|
305
306
|
>
|
|
307
|
+
<ModalHeader title={t('ai:Change hostnames')} />
|
|
306
308
|
<Formik
|
|
307
309
|
initialValues={initialValues}
|
|
308
310
|
validate={withTemplate(
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
ButtonVariant,
|
|
5
|
+
Modal,
|
|
6
|
+
ModalBody,
|
|
7
|
+
ModalFooter,
|
|
8
|
+
ModalHeader,
|
|
9
|
+
Stack,
|
|
10
|
+
StackItem,
|
|
11
|
+
} from '@patternfly/react-core';
|
|
4
12
|
|
|
5
13
|
import ModalProgress from '../ui/ModalProgress';
|
|
6
14
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
@@ -51,15 +59,13 @@ const MassDeleteHostModal = ({
|
|
|
51
59
|
return (
|
|
52
60
|
<Modal
|
|
53
61
|
aria-label={t('ai:Remove hosts dialog')}
|
|
54
|
-
title={t('ai:Remove hosts?')}
|
|
55
62
|
isOpen={isOpen}
|
|
56
63
|
onClose={onClose}
|
|
57
|
-
hasNoBodyWrapper
|
|
58
64
|
id="mass-delete-modal"
|
|
59
65
|
variant="medium"
|
|
60
|
-
titleIconVariant="warning"
|
|
61
66
|
>
|
|
62
|
-
<
|
|
67
|
+
<ModalHeader title={t('ai:Remove hosts?')} titleIconVariant="warning" />
|
|
68
|
+
<ModalBody>
|
|
63
69
|
<Stack hasGutter>
|
|
64
70
|
<StackItem>{t('ai:All of the listed hosts will be removed.')}</StackItem>
|
|
65
71
|
<StackItem>{children}</StackItem>
|
|
@@ -67,8 +73,8 @@ const MassDeleteHostModal = ({
|
|
|
67
73
|
<ModalProgress error={error} progress={progress} />
|
|
68
74
|
</StackItem>
|
|
69
75
|
</Stack>
|
|
70
|
-
</
|
|
71
|
-
<
|
|
76
|
+
</ModalBody>
|
|
77
|
+
<ModalFooter>
|
|
72
78
|
<Button
|
|
73
79
|
onClick={() => void onClick()}
|
|
74
80
|
isDisabled={progress !== null}
|
|
@@ -79,7 +85,7 @@ const MassDeleteHostModal = ({
|
|
|
79
85
|
<Button onClick={onClose} variant={ButtonVariant.secondary} isDisabled={progress !== null}>
|
|
80
86
|
{t('ai:Cancel')}
|
|
81
87
|
</Button>
|
|
82
|
-
</
|
|
88
|
+
</ModalFooter>
|
|
83
89
|
</Modal>
|
|
84
90
|
);
|
|
85
91
|
};
|
|
@@ -46,9 +46,7 @@ const diskColumns = (t: TFunction, showFormat: boolean) =>
|
|
|
46
46
|
].filter(Boolean) as { title: string | React.ReactNode }[];
|
|
47
47
|
|
|
48
48
|
const SkipFormattingDisk = () => (
|
|
49
|
-
<Content>
|
|
50
|
-
<Content component={ContentVariants.p}>This bootable disk will skip formatting</Content>
|
|
51
|
-
</Content>
|
|
49
|
+
<Content component={ContentVariants.p}>This bootable disk will skip formatting</Content>
|
|
52
50
|
);
|
|
53
51
|
|
|
54
52
|
const getDiskLimitation = (
|
|
@@ -7,9 +7,7 @@ import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/e
|
|
|
7
7
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
8
8
|
|
|
9
9
|
const SkipFormattingDisks = () => (
|
|
10
|
-
<Content>
|
|
11
|
-
<Content component={ContentVariants.p}>Some bootable disks will skip formatting</Content>
|
|
12
|
-
</Content>
|
|
10
|
+
<Content component={ContentVariants.p}>Some bootable disks will skip formatting</Content>
|
|
13
11
|
);
|
|
14
12
|
|
|
15
13
|
export const roleColumn = (t: TFunction, schedulableMasters: boolean): TableRow<Host> => {
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
ButtonProps,
|
|
5
|
+
Modal,
|
|
6
|
+
ModalBody,
|
|
7
|
+
ModalFooter,
|
|
8
|
+
ModalHeader,
|
|
9
|
+
ModalHeaderProps,
|
|
10
|
+
ModalVariant,
|
|
11
|
+
} from '@patternfly/react-core';
|
|
4
12
|
import { useTranslation } from '../../hooks/use-translation-wrapper';
|
|
5
13
|
|
|
6
14
|
type ConfirmationModalProps = {
|
|
7
15
|
title: string;
|
|
8
|
-
titleIconVariant?:
|
|
16
|
+
titleIconVariant?: ModalHeaderProps['titleIconVariant'];
|
|
9
17
|
content: React.ReactNode;
|
|
10
18
|
confirmationButtonVariant?: ButtonProps['variant'];
|
|
11
19
|
confirmationButtonText?: string;
|
|
@@ -24,13 +32,10 @@ const ConfirmationModal: React.FC<ConfirmationModalProps> = ({
|
|
|
24
32
|
}) => {
|
|
25
33
|
const { t } = useTranslation();
|
|
26
34
|
return (
|
|
27
|
-
<Modal
|
|
28
|
-
title={title}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
onClose={onClose}
|
|
32
|
-
variant={ModalVariant.small}
|
|
33
|
-
actions={[
|
|
35
|
+
<Modal isOpen={true} onClose={onClose} variant={ModalVariant.small}>
|
|
36
|
+
<ModalHeader title={title} titleIconVariant={titleIconVariant} />
|
|
37
|
+
<ModalBody>{content}</ModalBody>
|
|
38
|
+
<ModalFooter>
|
|
34
39
|
<Button
|
|
35
40
|
data-testid="confirm-modal-submit"
|
|
36
41
|
key="confirm"
|
|
@@ -38,13 +43,11 @@ const ConfirmationModal: React.FC<ConfirmationModalProps> = ({
|
|
|
38
43
|
onClick={onConfirm}
|
|
39
44
|
>
|
|
40
45
|
{confirmationButtonText}
|
|
41
|
-
</Button
|
|
46
|
+
</Button>
|
|
42
47
|
<Button key="cancel" variant="link" onClick={onClose}>
|
|
43
48
|
{t('ai:Cancel')}
|
|
44
|
-
</Button
|
|
45
|
-
|
|
46
|
-
>
|
|
47
|
-
{content}
|
|
49
|
+
</Button>
|
|
50
|
+
</ModalFooter>
|
|
48
51
|
</Modal>
|
|
49
52
|
);
|
|
50
53
|
};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
ButtonVariant,
|
|
5
|
+
FormGroup,
|
|
6
|
+
Modal,
|
|
7
|
+
ModalBody,
|
|
8
|
+
ModalFooter,
|
|
9
|
+
ModalHeader,
|
|
10
|
+
ModalVariant,
|
|
11
|
+
} from '@patternfly/react-core';
|
|
4
12
|
import { OpenShiftSelectWithSearch } from './OpenShiftSelectWithSearch';
|
|
5
13
|
import { HelperTextType } from './OpenShiftVersionDropdown';
|
|
6
14
|
import { useFormikContext } from 'formik';
|
|
@@ -31,32 +39,34 @@ export const OpenShiftVersionModal = ({
|
|
|
31
39
|
|
|
32
40
|
return (
|
|
33
41
|
<Modal
|
|
34
|
-
title="Available OpenShift Versions"
|
|
35
42
|
id="available-openshift-versions-modal"
|
|
36
43
|
isOpen
|
|
37
|
-
|
|
44
|
+
onClose={onClose}
|
|
45
|
+
variant={ModalVariant.small}
|
|
46
|
+
>
|
|
47
|
+
<ModalHeader title="Available OpenShift Versions" />
|
|
48
|
+
<ModalBody>
|
|
49
|
+
<FormGroup
|
|
50
|
+
id={`form-control__customOpenshiftSelect`}
|
|
51
|
+
fieldId={'customOpenshiftSelect'}
|
|
52
|
+
label={'OpenShift version'}
|
|
53
|
+
isRequired
|
|
54
|
+
>
|
|
55
|
+
<OpenShiftSelectWithSearch
|
|
56
|
+
versions={allVersions}
|
|
57
|
+
getHelperText={getHelperText}
|
|
58
|
+
setCustomOpenshiftSelect={setCustomOpenshiftSelect}
|
|
59
|
+
/>
|
|
60
|
+
</FormGroup>
|
|
61
|
+
</ModalBody>
|
|
62
|
+
<ModalFooter>
|
|
38
63
|
<Button key="select-custom-ocp" variant={ButtonVariant.primary} onClick={handleSelect}>
|
|
39
64
|
Select
|
|
40
|
-
</Button
|
|
65
|
+
</Button>
|
|
41
66
|
<Button key="close-custom-ocp" variant={ButtonVariant.link} onClick={onClose}>
|
|
42
67
|
Cancel
|
|
43
|
-
</Button
|
|
44
|
-
|
|
45
|
-
onClose={onClose}
|
|
46
|
-
variant={ModalVariant.small}
|
|
47
|
-
>
|
|
48
|
-
<FormGroup
|
|
49
|
-
id={`form-control__customOpenshiftSelect`}
|
|
50
|
-
fieldId={'customOpenshiftSelect'}
|
|
51
|
-
label={'OpenShift version'}
|
|
52
|
-
isRequired
|
|
53
|
-
>
|
|
54
|
-
<OpenShiftSelectWithSearch
|
|
55
|
-
versions={allVersions}
|
|
56
|
-
getHelperText={getHelperText}
|
|
57
|
-
setCustomOpenshiftSelect={setCustomOpenshiftSelect}
|
|
58
|
-
/>
|
|
59
|
-
</FormGroup>
|
|
68
|
+
</Button>
|
|
69
|
+
</ModalFooter>
|
|
60
70
|
</Modal>
|
|
61
71
|
);
|
|
62
72
|
};
|
|
@@ -8,10 +8,8 @@ interface SectionTitleProps extends WithTestID {
|
|
|
8
8
|
|
|
9
9
|
const SectionTitle = ({ title, testId }: SectionTitleProps) => (
|
|
10
10
|
<GridItem>
|
|
11
|
-
<Content>
|
|
12
|
-
|
|
13
|
-
{title}
|
|
14
|
-
</Content>
|
|
11
|
+
<Content data-testid={testId} component={ContentVariants.h3}>
|
|
12
|
+
{title}
|
|
15
13
|
</Content>
|
|
16
14
|
</GridItem>
|
|
17
15
|
);
|
|
@@ -82,10 +82,8 @@ export const StaticTextField: React.FC<StaticFieldProps> = ({ children, ...props
|
|
|
82
82
|
|
|
83
83
|
return (
|
|
84
84
|
<StaticField {...props}>
|
|
85
|
-
<Content>
|
|
86
|
-
|
|
87
|
-
{children}
|
|
88
|
-
</Content>
|
|
85
|
+
<Content component="p" id={fieldId} aria-describedby={`${fieldId}-helper`}>
|
|
86
|
+
{children}
|
|
89
87
|
</Content>
|
|
90
88
|
</StaticField>
|
|
91
89
|
);
|