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) {
|
if (!backend?.enrolled || !localEnrollment.value) {
|
||||||
|
const isKnownDevice = !!props.device.mdmId;
|
||||||
return {
|
return {
|
||||||
label: "Enrollen",
|
label: isKnownDevice ? "Schutz vervollständigen" : "Enrollen",
|
||||||
icon: "i-heroicons-document-check",
|
icon: isKnownDevice ? "i-heroicons-shield-check" : "i-heroicons-document-check",
|
||||||
color: "primary",
|
color: "primary",
|
||||||
variant: "solid",
|
variant: "solid",
|
||||||
to: "/enroll",
|
to: isKnownDevice ? "/preflight" : "/enroll",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user