Fleet UI: Add missing custom install vpp help text (Unreleased) (#26299)
This commit is contained in:
@@ -156,7 +156,7 @@ interface ITargetLabelSelectorProps {
|
||||
customTargetOptions: IDropdownOption[];
|
||||
selectedLabels: Record<string, boolean>;
|
||||
labels: ILabelSummary[];
|
||||
/** set this prop to show a help text. If it is encluded then it will override
|
||||
/** set this prop to show a help text. If it is included then it will override
|
||||
* the selected options defined `helpText`
|
||||
*/
|
||||
dropdownHelpText?: ReactNode;
|
||||
|
||||
+7
@@ -15,6 +15,7 @@ import TargetLabelSelector from "components/TargetLabelSelector";
|
||||
import SoftwareIcon from "pages/SoftwarePage/components/icons/SoftwareIcon";
|
||||
import {
|
||||
CUSTOM_TARGET_OPTIONS,
|
||||
generateHelpText,
|
||||
generateSelectedLabels,
|
||||
getCustomTarget,
|
||||
getTargetType,
|
||||
@@ -224,6 +225,9 @@ const SoftwareVppForm = ({
|
||||
onSelectCustomTarget={onSelectCustomTargetOption}
|
||||
onSelectLabel={onSelectLabel}
|
||||
labels={labels || []}
|
||||
dropdownHelpText={
|
||||
generateHelpText("manual", formData.customTarget) // maps to manual install help text
|
||||
}
|
||||
/>
|
||||
{renderSelfServiceContent(softwareVppForEdit.platform)}
|
||||
</div>
|
||||
@@ -253,6 +257,9 @@ const SoftwareVppForm = ({
|
||||
onSelectCustomTarget={onSelectCustomTargetOption}
|
||||
onSelectLabel={onSelectLabel}
|
||||
labels={labels || []}
|
||||
dropdownHelpText={
|
||||
generateHelpText("manual", formData.customTarget) // maps to manual install help text
|
||||
}
|
||||
/>
|
||||
{renderSelfServiceContent(
|
||||
("selectedApp" in formData &&
|
||||
|
||||
Reference in New Issue
Block a user