Compare commits
2 Commits
4e60081be9
...
2475c082de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2475c082de | ||
|
|
b04c4d1c93 |
@ -61,4 +61,3 @@ steps:
|
|||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
# Gitea deploy test
|
|
||||||
|
|||||||
@ -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"
|
:loading="manualSyncing || autoSyncing || isSearching" :disabled="autoSyncing || isSearching || action.disabled"
|
||||||
@click="onActionClick">
|
@click="onActionClick">
|
||||||
{{ action.label }}
|
{{ action.label }}
|
||||||
</UButton>
|
</UButton>
|
||||||
@ -325,6 +325,7 @@ 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");
|
||||||
@ -540,6 +541,13 @@ 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 };
|
||||||
});
|
});
|
||||||
@ -550,6 +558,7 @@ 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>(() => {
|
||||||
@ -678,10 +687,11 @@ const action = computed<IosAction>(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
label: "Synchronisieren",
|
label: "Voller Schutz aktiv",
|
||||||
icon: "i-heroicons-arrow-path",
|
icon: "i-heroicons-shield-check",
|
||||||
color: "success",
|
color: "success",
|
||||||
variant: "soft",
|
variant: "soft",
|
||||||
|
disabled: true,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -888,7 +898,21 @@ 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";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user