Replace generic console.error handlers with window.cloudron.onError

This commit is contained in:
Johannes Zellner
2025-12-08 19:45:11 +01:00
parent fe73e76fe9
commit 7db5a48e35
90 changed files with 297 additions and 298 deletions
@@ -40,7 +40,7 @@ async function onToggleEditableUserProfiles(value) {
onMounted(async () => {
const [error, result] = await userDirectoryModel.getGlobalProfileConfig();
if (error) return console.error(error);
if (error) return window.cloudron.onError(error);
editableUserProfiles.value = !result.lockUserProfiles;
mandatory2FA.value = result.mandatory2FA;