Skip to content

Commit 5c79163

Browse files
committed
Add Device Dialog: Only show Secureboot option for non-ESR
Change-type: patch
1 parent e8bdc0c commit 5c79163

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/DownloadImageDialog/ImageForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,14 @@ export const ImageForm = memo(function ImageForm({
152152

153153
const supportsSecureBoot = useMemo(() => {
154154
return (
155+
osType === 'default' &&
155156
model.deviceType.slug === GENERIC_X86_SLUG &&
156157
semver.gte(
157158
model.version,
158159
GENERIC_X86_MINIMUM_SUPPORTED_SECUREBOOT_VERSION,
159160
)
160161
);
161-
}, [model.deviceType.slug, model.version]);
162+
}, [model.deviceType.slug, model.version, osType]);
162163

163164
const secureBootDontShowAgainKey = `${model.deviceType.slug}_secureboot_warning_do_not_show_again`;
164165

0 commit comments

Comments
 (0)