fix(magic): show complete protection button for known disenrolled devices
This commit is contained in:
parent
e14a36f95a
commit
0efdf2f8f1
@ -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",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user