= {
},
selfService: {
iconName: "user",
- tooltip: (
- <>
- End users can install from Fleet Desktop {">"} Self-service.
- >
- ),
+ tooltip: SELF_SERVICE_TOOLTIP,
},
automatic: {
iconName: "refresh",
diff --git a/frontend/pages/SoftwarePage/SoftwareTitleDetailsPage/SoftwareInstallerCard/SoftwareInstallerCard.tsx b/frontend/pages/SoftwarePage/SoftwareTitleDetailsPage/SoftwareInstallerCard/SoftwareInstallerCard.tsx
index da85f13f13..a9dbe25ae0 100644
--- a/frontend/pages/SoftwarePage/SoftwareTitleDetailsPage/SoftwareInstallerCard/SoftwareInstallerCard.tsx
+++ b/frontend/pages/SoftwarePage/SoftwareTitleDetailsPage/SoftwareInstallerCard/SoftwareInstallerCard.tsx
@@ -11,6 +11,7 @@ import {
import softwareAPI from "services/entities/software";
import { getPathWithQueryParams } from "utilities/url";
+import { SELF_SERVICE_TOOLTIP } from "pages/SoftwarePage/helpers";
import Card from "components/Card";
@@ -307,22 +308,31 @@ const SoftwareInstallerCard = ({
addedTimestamp={addedTimestamp}
/>
- {(!softwareInstaller?.automatic_install_policies ||
- softwareInstaller?.automatic_install_policies.length > 0) && (
+ {Array.isArray(softwareInstaller.automatic_install_policies) &&
+ softwareInstaller.automatic_install_policies.length > 0 && (
+
+ setShowAutomaticInstallModal(true)}
+ />
+
+ )}
+ {isSelfService && (
- setShowAutomaticInstallModal(true)}
- />
+
)}
- {isSelfService && }
diff --git a/frontend/pages/SoftwarePage/helpers.tsx b/frontend/pages/SoftwarePage/helpers.tsx
index 5ff3b39b3b..7a03d2058d 100644
--- a/frontend/pages/SoftwarePage/helpers.tsx
+++ b/frontend/pages/SoftwarePage/helpers.tsx
@@ -13,12 +13,6 @@ import { getErrorReason } from "interfaces/errors";
import { ISoftwarePackage, IAppStoreApp } from "interfaces/software";
import { IDropdownOption } from "interfaces/dropdownOption";
-import Radio from "components/forms/fields/Radio";
-import TooltipWrapper from "components/TooltipWrapper";
-import InfoBanner from "components/InfoBanner";
-import CustomLink from "components/CustomLink";
-import { LEARN_MORE_ABOUT_BASE_LINK } from "utilities/constants";
-
/**
* helper function to generate error message for secret variables based
* on the error reason.
@@ -166,3 +160,9 @@ export const CUSTOM_TARGET_OPTIONS: IDropdownOption[] = [
disabled: false,
},
];
+
+export const SELF_SERVICE_TOOLTIP = (
+ <>
+ End users can install from Fleet Desktop > Self-service.
+ >
+);
diff --git a/frontend/pages/hosts/details/cards/Software/InstallStatusCell/InstallStatusCell.tsx b/frontend/pages/hosts/details/cards/Software/InstallStatusCell/InstallStatusCell.tsx
index e32e33df45..3192b2d721 100644
--- a/frontend/pages/hosts/details/cards/Software/InstallStatusCell/InstallStatusCell.tsx
+++ b/frontend/pages/hosts/details/cards/Software/InstallStatusCell/InstallStatusCell.tsx
@@ -4,6 +4,7 @@ import ReactTooltip from "react-tooltip";
import { uniqueId } from "lodash";
import { IHostSoftware, SoftwareInstallStatus } from "interfaces/software";
+import { SELF_SERVICE_TOOLTIP } from "pages/SoftwarePage/helpers";
import Icon from "components/Icon";
import TextCell from "components/TableContainer/DataTable/TextCell";
@@ -102,8 +103,7 @@ export const INSTALL_STATUS_DISPLAY_OPTIONS: Record<
tooltip: ({ softwareName }) => (
<>
{softwareName ? {softwareName} : "Software"} can be installed on
- the host. End users can install from{" "}
- Fleet Desktop {">"} Self-service.
+ the host. {SELF_SERVICE_TOOLTIP}
>
),
},