fix(magic): show complete protection button for known disenrolled devices

This commit is contained in:
chahinebrini 2026-06-18 06:28:04 +02:00
parent e14a36f95a
commit 0efdf2f8f1

View File

@ -519,12 +519,13 @@ const action = computed<IosAction>(() => {
}
if (!backend?.enrolled || !localEnrollment.value) {
const isKnownDevice = !!props.device.mdmId;
return {
label: "Enrollen",
icon: "i-heroicons-document-check",
label: isKnownDevice ? "Schutz vervollständigen" : "Enrollen",
icon: isKnownDevice ? "i-heroicons-shield-check" : "i-heroicons-document-check",
color: "primary",
variant: "solid",
to: "/enroll",
to: isKnownDevice ? "/preflight" : "/enroll",
};
}