mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Add warning banner for Android web apps requiring Google Chrome (#42598)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #42047 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. ## Testing - [x] QA'd all new/changed functionality manually For unreleased bug fixes in a release candidate, one of:
This commit is contained in:
parent
9bfef5dec3
commit
fb975a7de7
2 changed files with 18 additions and 0 deletions
1
changes/42047-android-web-app-banner
Normal file
1
changes/42047-android-web-app-banner
Normal file
|
|
@ -0,0 +1 @@
|
|||
Added banner to Add software page to inform users that Android web apps require Google Chrome.
|
||||
|
|
@ -17,7 +17,9 @@ import {
|
|||
generateSelectedLabels,
|
||||
getCustomTarget,
|
||||
getTargetType,
|
||||
isAndroidWebApp,
|
||||
} from "pages/SoftwarePage/helpers";
|
||||
import InfoBanner from "components/InfoBanner/InfoBanner";
|
||||
|
||||
import generateFormValidation from "./helpers";
|
||||
import { AndroidOptionsDescription } from "../SoftwareOptionsSelector/SoftwareOptionsSelector";
|
||||
|
|
@ -131,6 +133,21 @@ const SoftwareAndroidForm = ({
|
|||
disabled={gitOpsModeEnabled} // TODO: Confirm GitOps behavior
|
||||
/>
|
||||
</div>
|
||||
{isAndroidWebApp(formData.applicationID) && (
|
||||
<InfoBanner
|
||||
color="yellow"
|
||||
cta={
|
||||
<CustomLink
|
||||
url={`${LEARN_MORE_ABOUT_BASE_LINK}/android-web-apps-chrome-required`}
|
||||
text="Learn more"
|
||||
newTab
|
||||
/>
|
||||
}
|
||||
>
|
||||
This is an Android web app and it requires Google Chrome to work.
|
||||
Please make sure you add Google Chrome to this fleet.
|
||||
</InfoBanner>
|
||||
)}
|
||||
<div>
|
||||
<AndroidOptionsDescription />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue