mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Display iPad screenshot in lock modal (#38475)
…ot based on the device platform <!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #38473 # 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. - [ ] QA'd all new/changed functionality manually
This commit is contained in:
parent
393531b624
commit
85af395379
3 changed files with 13 additions and 3 deletions
BIN
assets/images/ipad-lock-preview.png
Normal file
BIN
assets/images/ipad-lock-preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 458 KiB |
1
changes/38473-add-ipad-screenshot-in-lock-modal
Normal file
1
changes/38473-add-ipad-screenshot-in-lock-modal
Normal file
|
|
@ -0,0 +1 @@
|
|||
Updated lock modal for iPad hosts to display iPad screenshot in the end user experience section
|
||||
|
|
@ -14,10 +14,17 @@ import CustomLink from "components/CustomLink";
|
|||
import Card from "components/Card";
|
||||
|
||||
import IphoneLockPreview from "../../../../../../../assets/images/iphone-lock-preview.png";
|
||||
import IpadLockPreview from "../../../../../../../assets/images/ipad-lock-preview.png";
|
||||
|
||||
const baseClass = "lock-modal";
|
||||
|
||||
const IosOrIpadLockPreview = () => {
|
||||
const IosOrIpadLockPreview = ({ platform }: { platform: string }) => {
|
||||
const isIPad = platform === "ipados";
|
||||
const previewImage = isIPad ? IpadLockPreview : IphoneLockPreview;
|
||||
const altText = isIPad
|
||||
? "iPad with a lock screen message"
|
||||
: "iPhone with a lock screen message";
|
||||
|
||||
return (
|
||||
<Card
|
||||
color="grey"
|
||||
|
|
@ -34,7 +41,7 @@ const IosOrIpadLockPreview = () => {
|
|||
/>
|
||||
.
|
||||
</p>
|
||||
<img src={IphoneLockPreview} alt="iPhone with a lock screen message" />
|
||||
<img src={previewImage} alt={altText} />
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
|
@ -118,7 +125,9 @@ const LockModal = ({
|
|||
</Checkbox>
|
||||
</div>
|
||||
</div>
|
||||
{isIPadOrIPhone(platform) && <IosOrIpadLockPreview />}
|
||||
{isIPadOrIPhone(platform) && (
|
||||
<IosOrIpadLockPreview platform={platform} />
|
||||
)}
|
||||
<div className="modal-cta-wrap">
|
||||
<Button
|
||||
type="button"
|
||||
|
|
|
|||
Loading…
Reference in a new issue