mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Fleet UI: Remove edit software option from Android (#37403)
This commit is contained in:
parent
ba72182562
commit
b8b50ed7e2
2 changed files with 8 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue