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:
- event: push
branch: main
# Gitea deploy test

View File

@ -271,7 +271,7 @@
{{ action.label }}
</UButton>
<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">
{{ action.label }}
</UButton>
@ -325,7 +325,6 @@ const {
stopLocalProfileServer,
getInstalledProfiles,
mdmPush,
reportDeviceProtectionState,
} = useTauri();
const enrollmentPhase = ref<"idle" | "loading" | "waiting" | "checking" | "success" | "error">("idle");
@ -541,13 +540,6 @@ const topBadge = computed(() => {
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];
return { label: cfg.label, color: cfg.color, variant: cfg.variant };
});
@ -558,7 +550,6 @@ interface IosAction {
color: "primary" | "warning" | "success" | "error" | "neutral";
variant: "solid" | "soft" | "outline" | "ghost";
to?: string;
disabled?: boolean;
}
const action = computed<IosAction>(() => {
@ -687,11 +678,10 @@ const action = computed<IosAction>(() => {
}
return {
label: "Voller Schutz aktiv",
icon: "i-heroicons-shield-check",
label: "Synchronisieren",
icon: "i-heroicons-arrow-path",
color: "success",
variant: "soft",
disabled: true,
};
});
@ -898,21 +888,7 @@ 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");
lockPhase.value = "success";
} catch (e: any) {
lockError.value = e?.message ?? "Prüfung fehlgeschlagen";