Compare commits

..

No commits in common. "2475c082deffd1044d5b2a683c8d388203455c1a" and "4e60081be9c3a96de8fdc3fc59967e8783079ef1" have entirely different histories.

2 changed files with 4 additions and 27 deletions

View File

@ -61,3 +61,4 @@ steps:
when: when:
- event: push - event: push
branch: main branch: main
# Gitea deploy test

View File

@ -271,7 +271,7 @@
{{ action.label }} {{ action.label }}
</UButton> </UButton>
<UButton v-else :color="action.color" :variant="action.variant" size="sm" :icon="action.icon" <UButton v-else :color="action.color" :variant="action.variant" size="sm" :icon="action.icon"
:loading="manualSyncing || autoSyncing || isSearching" :disabled="autoSyncing || isSearching || action.disabled" :loading="manualSyncing || autoSyncing || isSearching" :disabled="autoSyncing || isSearching"
@click="onActionClick"> @click="onActionClick">
{{ action.label }} {{ action.label }}
</UButton> </UButton>
@ -325,7 +325,6 @@ const {
stopLocalProfileServer, stopLocalProfileServer,
getInstalledProfiles, getInstalledProfiles,
mdmPush, mdmPush,
reportDeviceProtectionState,
} = useTauri(); } = useTauri();
const enrollmentPhase = ref<"idle" | "loading" | "waiting" | "checking" | "success" | "error">("idle"); const enrollmentPhase = ref<"idle" | "loading" | "waiting" | "checking" | "success" | "error">("idle");
@ -541,13 +540,6 @@ const topBadge = computed(() => {
variant: "subtle" as const, variant: "subtle" as const,
}; };
} }
if (props.isConnected && props.iphone) {
return {
label: "Voller Schutz aktiv",
color: "success" as const,
variant: "subtle" as const,
};
}
const cfg = statusConfig[props.device.status]; const cfg = statusConfig[props.device.status];
return { label: cfg.label, color: cfg.color, variant: cfg.variant }; return { label: cfg.label, color: cfg.color, variant: cfg.variant };
}); });
@ -558,7 +550,6 @@ interface IosAction {
color: "primary" | "warning" | "success" | "error" | "neutral"; color: "primary" | "warning" | "success" | "error" | "neutral";
variant: "solid" | "soft" | "outline" | "ghost"; variant: "solid" | "soft" | "outline" | "ghost";
to?: string; to?: string;
disabled?: boolean;
} }
const action = computed<IosAction>(() => { const action = computed<IosAction>(() => {
@ -687,11 +678,10 @@ const action = computed<IosAction>(() => {
} }
return { return {
label: "Voller Schutz aktiv", label: "Synchronisieren",
icon: "i-heroicons-shield-check", icon: "i-heroicons-arrow-path",
color: "success", color: "success",
variant: "soft", variant: "soft",
disabled: true,
}; };
}); });
@ -898,21 +888,7 @@ async function checkInlineLockProfile() {
} }
lockLogs.value.push("✓ Lock-Profil erkannt"); 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(); await refreshMdmStatus();
lockLogs.value.push("✓ Status aktualisiert");
lockPhase.value = "success"; lockPhase.value = "success";
} catch (e: any) { } catch (e: any) {
lockError.value = e?.message ?? "Prüfung fehlgeschlagen"; lockError.value = e?.message ?? "Prüfung fehlgeschlagen";