fix(magic): entferne reportDeviceProtectionState aus Lock-Profil-Flow
Some checks failed
Some checks failed
- Status kommt jetzt über /api/protection/event vom iOS Plugin.
- /api/devices/protection-state gibt jetzt { success: true, data: null }
zurück, damit der Rust-Client nicht failed.
This commit is contained in:
parent
97f8d593a5
commit
a7ac5545ae
@ -325,7 +325,6 @@ const {
|
||||
stopLocalProfileServer,
|
||||
getInstalledProfiles,
|
||||
mdmPush,
|
||||
reportDeviceProtectionState,
|
||||
} = useTauri();
|
||||
|
||||
const enrollmentPhase = ref<"idle" | "loading" | "waiting" | "checking" | "success" | "error">("idle");
|
||||
@ -899,16 +898,6 @@ async function checkInlineLockProfile() {
|
||||
|
||||
lockLogs.value.push("✓ Lock-Profil erkannt");
|
||||
|
||||
lockLogs.value.push("→ Melde Lock-Profil-Status an Backend …");
|
||||
await reportDeviceProtectionState(
|
||||
props.device.deviceId,
|
||||
"ios",
|
||||
"nefilter",
|
||||
true,
|
||||
"Lock-Profil via QR-Code installiert",
|
||||
);
|
||||
lockLogs.value.push("✓ Backend aktualisiert");
|
||||
|
||||
lockLogs.value.push("→ Hole aktuellen Backend-Status …");
|
||||
await refreshMdmStatus();
|
||||
lockLogs.value.push("✓ Status aktualisiert");
|
||||
|
||||
@ -88,5 +88,5 @@ export default defineEventHandler(async (event) => {
|
||||
source ?? "app",
|
||||
);
|
||||
|
||||
return { success: true };
|
||||
return { success: true, data: null };
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user