Removes software links from device user page (#8668)

This commit is contained in:
Luke Heath 2022-11-11 08:58:11 -06:00 committed by GitHub
parent 9f3c83b7c5
commit 84def9fdb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,6 +149,13 @@ export const generateSoftwareTableHeaders = (
disableGlobalFilter: false,
Cell: (cellProps: IStringCellProps) => {
const { id, name, bundle_identifier: bundle } = cellProps.row.original;
if (deviceUser) {
return bundle ? (
renderBundleTooltip(name, bundle)
) : (
<span>{name}</span>
);
}
return (
<Link to={`${PATHS.SOFTWARE_DETAILS(id.toString())}`}>
{bundle ? renderBundleTooltip(name, bundle) : name}