Fleet UI: Add missing custom install vpp help text (Unreleased) (#26299)

This commit is contained in:
RachelElysia
2025-02-12 14:16:52 -05:00
committed by GitHub
parent b2a8b5c70e
commit e0306dca20
2 changed files with 8 additions and 1 deletions
@@ -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;
@@ -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 &&