Fleet UI: Remove edit software option from Android (#37403)

This commit is contained in:
RachelElysia 2025-12-17 13:56:35 -05:00 committed by GitHub
parent ba72182562
commit b8b50ed7e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -61,14 +61,19 @@ const buildActionOptions = (
isDisabled: !!disableEditAppearanceTooltipContent,
tooltipContent: disableEditAppearanceTooltipContent,
},
{
];
// Hides edit software option only for Android installers, as they are currently non-editable
if (!androidSoftwareAvailableForInstall) {
options.push({
label: "Edit software",
value: "edit_software",
isDisabled: !!disableEditSoftwareTooltipContent,
tooltipContent: disableEditSoftwareTooltipContent,
},
];
});
}
// Show edit configuration option only for Android installers
if (androidSoftwareAvailableForInstall) {
options.push({
label: "Edit configuration",

View file

@ -29,7 +29,6 @@ const SoftwareIcon = ({
url,
uploadedAt,
}: ISoftwareIconProps) => {
console.log("name", name, "source", source, "url", url);
const classNames = classnames(baseClass, `${baseClass}__${size}`);
const [imgFailed, setImgFailed] = useState(false);