UI – 2 small unreleased bug fixes for software install policy automations UI (#22181)

## 2 small fixes for issues found in QA

- Capitalize word in tooltip
- Correctly render error message, with correctly colored icon

- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
jacobshandling 2024-09-17 17:04:12 -04:00 committed by GitHub
parent 518a4a1f98
commit f135d5b732
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 5 deletions

View file

@ -9,7 +9,7 @@ import { InjectedRouter } from "react-router";
import PATHS from "router/paths";
import { AppContext } from "context/app";
import { NotificationContext } from "context/notification";
import { SoftwareInstallStatus, ISoftwarePackage } from "interfaces/software";
import { ISoftwarePackage } from "interfaces/software";
import softwareAPI from "services/entities/software";
import { buildQueryStringFromParams } from "utilities/url";
@ -104,7 +104,7 @@ const STATUS_DISPLAY_OPTIONS: Record<
<br />
with exit code 0). Currently, if the software is uninstalled, the
<br />
&quot;installed&quot; status won&apos;t be updated.
&quot;Installed&quot; status won&apos;t be updated.
</>
),
},

View file

@ -111,16 +111,19 @@ const AddPackage = ({
) {
renderFlash(
"error",
`${reason}. ${(
<>
{reason}{" "}
<CustomLink
newTab
url={`${LEARN_MORE_ABOUT_BASE_LINK}/read-package-version`}
text="Learn more"
iconColor="core-fleet-white"
/>
)} `
</>
);
} else {
renderFlash("error", getErrorMessage(e));
}
renderFlash("error", getErrorMessage(e));
}
onExit();